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
If I want to check whether the state is present or not before trying to access it is there any way?
As I am training to set the global state on use effect and call API the result will store in the global state and same store will be accessed in the same component if there is data in the state we won't call API again and again.
So want to check if the store is available? if not then call API and create a store after that use that store everywhere.
The text was updated successfully, but these errors were encountered:
If I want to check whether the state is present or not before trying to access it is there any way?
As I am training to set the global state on use effect and call API the result will store in the global state and same store will be accessed in the same component if there is data in the state we won't call API again and again.
So want to check if the store is available? if not then call API and create a store after that use that store everywhere.
The text was updated successfully, but these errors were encountered: