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
To my understanding the signalStore provides functionallity to encapsulate specific domain handling - supported by the with-methods. But one downside (or plus - don't know) is that the variables are somehow encapsulated, meaning I cannot access from the signalStoreFeature to the signalStore. Is there a way to achieve it?
I have currently defined a store like this
initSearchState={
selectedFlightNo: number
... // other properties, e.g. paging details
}
export const SearchStore=signalStore(
withState(initSearchState),
...
withPermissions(),
....
}
My idea is to forward the selectedFlightNo from the store to the encapsulated signalStoreFeature. Right now the above code complains that selectedFlightNo is overridden which sounds somehow strange. Strange in sense of: I cannot access from the feature to the store - so how can they override?
If I change
initPermissionState={
selectedFlightNo_permission: number
... // permission-related properties
}
no further complaints. But nevertheless it won't solve the initial problem with handover.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To my understanding the
signalStore
provides functionallity to encapsulate specific domain handling - supported by thewith
-methods. But one downside (or plus - don't know) is that the variables are somehow encapsulated, meaning I cannot access from thesignalStoreFeature
to thesignalStore
. Is there a way to achieve it?I have currently defined a store like this
and the
withPermissions
feature likeMy idea is to forward the
selectedFlightNo
from the store to the encapsulatedsignalStoreFeature
. Right now the above code complains thatselectedFlightNo
is overridden which sounds somehow strange. Strange in sense of: I cannot access from the feature to the store - so how can they override?If I change
no further complaints. But nevertheless it won't solve the initial problem with handover.
Beta Was this translation helpful? Give feedback.
All reactions