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
I was looking at incorporating into an existing FormWizard component that uses RHF and is used in many places across our application. I’ve added a persistKey prop (string) that, when present, would just be used to enable form persist within that instance of the wizard. Like this:
I was looking at incorporating into an existing
FormWizard
component that uses RHF and is used in many places across our application. I’ve added apersistKey
prop (string) that, when present, would just be used to enable form persist within that instance of the wizard. Like this:However, it’s not recommended to conditionally apply hooks in a component, so what would be the recommended process here?
I was considering forking the project and adding something like this to the two
useEffect
blocks:if (!name) return
Thoughts?
The text was updated successfully, but these errors were encountered: