Skip to content

Commit

Permalink
Update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Mar 13, 2023
1 parent 3fb08df commit b00a959
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .changeset/remove-fetcher-back-compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
"@remix-run/react": major
---

Remove back-compat layer for useFetcher/useFetchers
Remove back-compat layer for `useFetcher`/`useFetchers`. This includes a few small breaking changes:
* `fetcher.type` has been removed since it can be derived from other available information
* "Submission" fields have been flattened from `fetcher.submission` down onto the root `fetcher` object, and prefixed with `form` in some cases (`fetcher.submission.action` => `fetcher.formAction`)
* `<fetcher.Form method="get">` is now more accurately categorized as `state:"loading"` instead of `state:"submitting"` to better align with the underlying GET request

0 comments on commit b00a959

Please sign in to comment.