Skip to content

Commit

Permalink
chore: clean up changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Oct 26, 2022
1 parent 4e8cbd8 commit b525078
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .changeset/pre.json
@@ -0,0 +1,23 @@
{
"mode": "pre",
"tag": "pre",
"initialVersions": {
"create-remix": "1.7.3",
"remix": "1.7.3",
"@remix-run/architect": "1.7.3",
"@remix-run/cloudflare": "1.7.3",
"@remix-run/cloudflare-pages": "1.7.3",
"@remix-run/cloudflare-workers": "1.7.3",
"@remix-run/deno": "1.7.3",
"@remix-run/dev": "1.7.3",
"@remix-run/eslint-config": "1.7.3",
"@remix-run/express": "1.7.3",
"@remix-run/netlify": "1.7.3",
"@remix-run/node": "1.7.3",
"@remix-run/react": "1.7.3",
"@remix-run/serve": "1.7.3",
"@remix-run/server-runtime": "1.7.3",
"@remix-run/vercel": "1.7.3"
},
"changesets": []
}
4 changes: 1 addition & 3 deletions .changeset/witty-kiwis-flow.md
Expand Up @@ -3,6 +3,4 @@
"@remix-run/react": patch
---

Infer the type of the `.data` property of `useFetcher` from `loader` and `action` functions.
Similarly to how you can write useLoaderData<typeof loader>. e.g. you can now write useFetcher<typeof action>, and fetcher.data will be inferred correctly.
Previously, you had to write useFetcher<SerializeFrom<typeof action>>.
You can now infer the type of the `.data` property of `useFetcher` from the return type of your `loader` and `action` functions
5 changes: 5 additions & 0 deletions .changeset/witty-seahorses-appear.md
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

Fixed a bug in `<Form>` that prevented the correct method from being called with non-`POST` submissions

0 comments on commit b525078

Please sign in to comment.