What's wrong with this entry?
Anonymous. No account, no email.
What
Improved error messages for incorrect usage of the useAppState hook.
Details
- Combined error for both
useAppStateanduseSetAppState: "useAppState/useSetAppState cannot be called outside of an <AppStateProvider />" - New error when selector returns the whole state: "Your selector in
useAppState(...)returned the original state, which is not allowed. You must instead return a property for optimised rendering."
Evidence
Error handling at line 476661 (contains "useAppState/useSetAppState cannot be called outside", "Your selector in \useAppState("`)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.