usage of props #204
Answered
by
NetanelBasal
mathisloge
asked this question in
Q&A
Replies: 1 comment 1 reply
-
toursStore.pipe(
selectAllEntities(),
withLatestFrom(usersStore.pipe(selectEntities())),
map(([tours, users]) => {
return tours.map(t => {
return {
...t,
author: users[t.authorId]
}
})
})
). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mathisloge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't really make this up from the documentation. I have the following use case:
Now I have to Stores and the prop factory configured:
After reading the doc section of the prop factory, I thought it could do the
1:M
mapping automatically.I've tried something with
but don't know how to represent the mapping of
authorId --> User
Beta Was this translation helpful? Give feedback.
All reactions