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
Your way of implementing a generic api middleware is great.
I am using 'UseDispatch' from react-redux library, here i will dispatch to an action and do an api call and update the redux store using reducer.
But my requirement is "need to wait till the redux store has data and then proceed further". Any idea how to get this ?
Can i make a specific api call from action method as async await when i call that action method from functional component or inside useEffect() i need to wait till i have data in redux store.
Regards,
Sandesh
The text was updated successfully, but these errors were encountered:
Hi,
Your way of implementing a generic api middleware is great.
I am using 'UseDispatch' from react-redux library, here i will dispatch to an action and do an api call and update the redux store using reducer.
But my requirement is "need to wait till the redux store has data and then proceed further". Any idea how to get this ?
Can i make a specific api call from action method as async await when i call that action method from functional component or inside useEffect() i need to wait till i have data in redux store.
Regards,
Sandesh
The text was updated successfully, but these errors were encountered: