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
This is how React works - you can't instantiate anything that has side-effects with useConstant. Side effects belong to useEffect/event handlers (or to outside of your components)
@Andarist I thought it should be used for instantiating a store class too with useConstant but this isn't the case, useEffect is called after the component was mounted and not parallel
Hi, in strict mode it is called twice, which is an issue if we have an api call method or class instantiation
The text was updated successfully, but these errors were encountered: