You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if this is possible with instance methods/properties or if I have to inject the store. I'm also interested in scenarios where the input changes, and how to handle that with the select pattern.
But with that approach, you still need to have sth like a currentEntityId somewhere else in your state.
My issue is that i'm not able to have that property due to the structure of the page (there are multiple currentEntities, within multiple entitiesGroups within a single entityOwner, for example) and I need the entitiesGroup Id, which is passed as an Input and Redux seems to set @selects before @inputs, so I can't really read it to use the approach I suggested. IDK if there's a way to bypass this or a better implementation
Activity
Fedejp commentedon Nov 27, 2020
Having similar issues here. I don't think what you're asking for is possible, i'd do sth like
@select(state => state.entityListIds.filter(...)) entity$But with that approach, you still need to have sth like a currentEntityId somewhere else in your state.
My issue is that i'm not able to have that property due to the structure of the page (there are multiple currentEntities, within multiple entitiesGroups within a single entityOwner, for example) and I need the entitiesGroup Id, which is passed as an Input and Redux seems to set
@selectsbefore@inputs, so I can't really read it to use the approach I suggested. IDK if there's a way to bypass this or a better implementation