-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
Describe the bug
Since I've migrated my action to the singleFetch approach (replace json by data or nothing), namedAction has error and useFetcher<typeof action>().data is unknown.
I cannot do anymore:
return namedAction(request, {
When I replace this by:
return namedAction(await request.clone().formData(), {I have error on the name of the action:

Here is the details of the error:

And the useFetcher<typeof action>().data is unknown:

Your Example Website or App
n/a (maybe you don't need it for this bug?)
Steps to Reproduce the Bug or Issue
- Enable singleFetch.
- See the "describe of the bug" ⬆️ to reproduce.
Expected behavior
That it works as it did before activating singleFetch.
Screenshots or Videos
No response
Platform
- Remix version:
2.13.1 - Remix utils version:
7.7.0 - Typescript version:
5.6.3
Additional context
I hope you will understand the problem easily, if not, tell me and I can invest more time to give you a reproduction environment 🙏.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels