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
{{ message }}
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
React hooks are enclosed - only component itself can trigger own update. Hooks don't subscribe component to external events. The only subscription, triggering component rerendering is props.
unihooks (as well as many other hooks libs) break that convention and subscribe to external data sources. First of all breaking that redux - useSelector literally makes component react on store changes, circumventing props, drawing props in general case a rudiment, not required by reactive function. Literally props mean useArguments, with subscription to function call with new args.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
React hooks are enclosed - only component itself can trigger own update. Hooks don't subscribe component to external events. The only subscription, triggering component rerendering is
props
.unihooks (as well as many other hooks libs) break that convention and subscribe to external data sources. First of all breaking that
redux
-useSelector
literally makes component react on store changes, circumventingprops
, drawingprops
in general case a rudiment, not required by reactive function. Literallyprops
meanuseArguments
, with subscription to function call with new args.The text was updated successfully, but these errors were encountered: