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 am pretty new to Akita but really like it! However, I was trying to listen for the loading to state to return false at which time I would query the store's error value. During my testing, the store had not updated yet so it would always return undefined when an error was received from the http request. Given we pass the state to the custom operator, I expected it to listen to the store actions AND then set the loading state to false. I have looked at a number of your examples where you aren't using this operator but manually set the loading state before a call is made and then after the store updates. Am I using this operator incorrectly?
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
-
I am pretty new to Akita but really like it! However, I was trying to listen for the loading to state to return
false
at which time I would query the store's error value. During my testing, the store had not updated yet so it would always returnundefined
when an error was received from the http request. Given we pass the state to the custom operator, I expected it to listen to the store actions AND then set the loading state tofalse
. I have looked at a number of your examples where you aren't using this operator but manually set the loading state before a call is made and then after the store updates. Am I using this operator incorrectly?Beta Was this translation helpful? Give feedback.
All reactions