Skip to content

Commit

Permalink
v2: remove fetcher back-compat layer
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 20, 2023
1 parent a6458ca commit 9369212
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 796 deletions.
8 changes: 8 additions & 0 deletions .changeset/v2-remove-fetcher-compat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@remix-run/react": major
---

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
312 changes: 0 additions & 312 deletions integration/fetcher-state-test.ts

This file was deleted.

Loading

0 comments on commit 9369212

Please sign in to comment.