-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make formAction
return inferrable
#123
Comments
I'd be happy to pair on this one ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever we return the
formAction
in an action:The
useActionData
loses the inference - it will be inferred asany
.It'd be cool that it would infer the
TypedResponse
for us.The inferred type should probably be a union of:
Things to consider:
json
increateFormAction
we should be using the return of that given functionsuccessPath
in theformAction
the return type of the mutation should not be considered:The text was updated successfully, but these errors were encountered: