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
In my application, I am using global (functional) effects which do no use Actions as source Observable and never emit any Action ({ dispatch: false }}. For example, I have a global effect which subscribes to a STOMP/WebSocket channel to get announcement messages and display an alert box containing those messages.
Now that I have converted all my legacy stores to signal stores, I think it rather awkward having to use provideStore() to make those effects (with createEffect()) work because I don't use the old store at all anymore. I need to use provideStore() because effects depend on the old store (they need the store to dispatch any Action which is emitted by my effect). But in my case, I always use { dispatch: false } and I don't use Actions as source.
So would it be possible to have a createEffect() which:
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
Uh oh!
There was an error while loading. Please reload this page.
-
In my application, I am using global (functional) effects which do no use
Actions
as sourceObservable
and never emit anyAction
({ dispatch: false }
}. For example, I have a global effect which subscribes to a STOMP/WebSocket channel to get announcement messages and display an alert box containing those messages.Now that I have converted all my legacy stores to signal stores, I think it rather awkward having to use
provideStore()
to make those effects (withcreateEffect()
) work because I don't use the old store at all anymore. I need to useprovideStore()
because effects depend on the old store (they need the store to dispatch anyAction
which is emitted by my effect). But in my case, I always use{ dispatch: false }
and I don't useActions
as source.So would it be possible to have a
createEffect()
which:Beta Was this translation helpful? Give feedback.
All reactions