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
As the title says, you have to read from the state.stream before sending any write effects otherwise they will be ignored. This is a problem when you have a transition view (like a splash screen component) that doesn't read from the state source and the write effects are sent during that splash screen.
I have a splash screen during which (amongst other things like preloading some resources) I try to auth by verifying some token from the localStorage and then store the authentication result (user data) in the state (along with some other information like what is the next "route" - based on the auth result).
The initial reducer is in the wrapper main function, so that doesn't do anything either. So unless I read from state.stream in the main function, I'm stuck.
Changing the reducerMimic$ to a MemoryStream would make it work
The text was updated successfully, but these errors were encountered:
As the title says, you have to read from the
state.stream
before sending any write effects otherwise they will be ignored. This is a problem when you have atransition
view (like a splash screen component) that doesn't read from thestate
source and the write effects are sent during that splash screen.I have a splash screen during which (amongst other things like preloading some resources) I try to auth by verifying some token from the
localStorage
and then store the authentication result (user data) in thestate
(along with some other information like what is the next "route" - based on the auth result).The initial reducer is in the wrapper
main
function, so that doesn't do anything either. So unless I read fromstate.stream
in themain
function, I'm stuck.Changing the
reducerMimic$
to aMemoryStream
would make it workThe text was updated successfully, but these errors were encountered: