Making a hook that encapsulates a form
HI im trying to figure out how to do this:
1 Reply
afraid-scarlet•2y ago
Well, I don't think getValues is what you want.
Probably need to use
form.useStore((state) => state.valuse.homepageUrl) so that is subscribes to it in the hook and re-runs when it changes.