Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Jul 20, 2023
1 parent 6a0a6d1 commit 7098a84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .changeset/v2-remove-fetcher-compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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
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
8 changes: 4 additions & 4 deletions .changeset/v2-remove-use-transition.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"@remix-run/react": major
---

Remove deprecated `useTransition` hook in favor of `useNavigation`. `useNavigation` is _almost_ identical with a few exceptions:_
Remove deprecated `useTransition` hook in favor of `useNavigation`. `useNavigation` is _almost_ identical with a few exceptions:\_

* `useTransition.type` has been removed since it can be derived from other available information
* "Submission" fields have been flattened from `useTransition().submission` down onto the root `useNavigation()` object
* `<Form method="get">` is now more accurately categorized as `state:"loading"` instead of `state:"submitting"` to better align with the underlying GET navigation
- `useTransition.type` has been removed since it can be derived from other available information
- "Submission" fields have been flattened from `useTransition().submission` down onto the root `useNavigation()` object
- `<Form method="get">` is now more accurately categorized as `state:"loading"` instead of `state:"submitting"` to better align with the underlying GET navigation

0 comments on commit 7098a84

Please sign in to comment.