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
use can only be used inside hooks. The same applies to throw we can only throw at the top level of a component.
Currently, we throw inside functions like readButDoNotEvaluate, which makes it unclear that these shouldn’t be called outside a component’s top level.
By refactoring to only throw within hooks, we can prepare for deprecation, improve the developer experience, and make it clearer how to make @isograph/react framework agnostic #564