Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
useSteps(): only update setStep when needed #774
Yes and I’m not a big fan of the solution as it is… but at least the complexity stays in the hook itself, which is nice. Maybe we should move every custom hook in its own file, so that reducers, initial states etc. declared outside of the hook itself wouldn’t be in the same module than other hooks.