Skip to content

How to select and combine the only active entity with ui #70

Answered by NetanelBasal
mmpneo asked this question in Q&A
Discussion options

You must be logged in to vote

This is abuse in my opinion. If you need only one active entity use selectActiveEntity. Then, you can do it manually:

store.combine({
  entity: store.pipe(selectActiveEntity()),
  UIEntity: store.pipe(selectActiveEntity({ ref: UIEntitiesRef }))
}).pipe(
  map(({ entity, UIEntity })=> ({ ...entity, ...UIEntity}))
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmpneo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants