Skip to content

Commit df3ae95

Browse files
committed
Merge branch 'dev' into brophdawg11/revalidating-fetcher-controller
2 parents df4557c + f7f5519 commit df3ae95

File tree

26 files changed

+140
-77
lines changed

26 files changed

+140
-77
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@remix-run/router": patch
3+
---
4+
5+
Enhance `LoaderFunction`/`ActionFunction` return type to prevent `undefined` from being a valid return value

.changeset/fetcher-submission-revalidation.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/fix-fragments-ids.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/initialize-lazy-errors.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/normalize-form-method.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/ssr-error-boundary.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/update-web-fetch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: 🏗 Build
4141
run: yarn build
4242

43+
- name: 🔬 Lint
44+
run: yarn lint
45+
4346
- name: 🧪 Run tests
4447
run: yarn test
4548

contributors.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
- kentcdodds
105105
- kiliman
106106
- kkirsche
107+
- kno-raziel
107108
- koojaa
108109
- KostiantynPopovych
109110
- KutnerUri
@@ -142,6 +143,7 @@
142143
- ms10596
143144
- ned-park
144145
- nilubisan
146+
- nnhjs
145147
- noisypigeon
146148
- Obi-Dann
147149
- omar-moquete
@@ -195,9 +197,9 @@
195197
- WalkAlone0325
196198
- willemarcel
197199
- williamsdyyz
200+
- willsawyerrrr
198201
- xavier-lc
199202
- xcsnowcity
200203
- yionr
201204
- yuleicul
202205
- zheng-chuang
203-
- nnhjs

docs/hooks/use-fetchers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For example, imagine a UI where the sidebar lists projects, and the main view di
3838
+-----------------+----------------------------┘
3939
```
4040

41-
When the user clicks a checkbox, the submission goes to the action to change the state of the task. Instead of creating a "loading state" we want to create an "optimistic UI" that will **immediately** update the checkbox to appear checked even though the server hasn't processed it yet. In the checkbox component, we can use `fetcher.submission`:
41+
When the user clicks a checkbox, the submission goes to the action to change the state of the task. Instead of creating a "loading state" we want to create an "optimistic UI" that will **immediately** update the checkbox to appear checked even though the server hasn't processed it yet. In the checkbox component, we can use `fetcher.formData`:
4242

4343
```tsx
4444
function Task({ task }) {

0 commit comments

Comments
 (0)