Generic type for onServer value in setErrorMap remains undefined
We started using the lib in NextJS 15 at version 1.3. Currently trying to update to the latest (1.11.3), but it's giving me a typescript issue on one location. Diving a bit deeper into this, everything worked fine up untill 1.8, from 1.9 onward this breaks.
We have quite an abstract implementation with createFormHook and createFormHookContexts.
For the onSubmit validation we have written a solution that ensures both client side as well as server side errors correctly get passed through to the client form.
It seems like TOnServer never gets set? I'm however not sure what's needed in order for typescript to know what the type is for TOnServer
We have quite an abstract implementation with createFormHook and createFormHookContexts.
For the onSubmit validation we have written a solution that ensures both client side as well as server side errors correctly get passed through to the client form.
It seems like TOnServer never gets set? I'm however not sure what's needed in order for typescript to know what the type is for TOnServer
