Re:useStateMachine: A ½ kb state machine hook for React
by grandpoobah on Saturday May 22, 2021 @01:52PM
(#27248774)
> You forget one value in your dependency list and the weirdest things happen
Really? I've been working with hooks for months, with code in production, and I hardly ever pass more than one or two items to the dependency list. The only time I really had any trouble with dependencies was when I was updating appContext inside a hook.
Really? I've been working with hooks for months, with code in production, and I hardly ever pass more than one or two items to the dependency list. The only time I really had any trouble with dependencies was when I was updating appContext inside a hook.