Skip to content

Commit 00816e4

Browse files
authored
docs: fix grammar errors in race-conditions.md (#12528)
* Fixed grammar errors in race-conditions.md * added username to contributors.yml
1 parent 7473775 commit 00816e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,4 @@
316316
- yuleicul
317317
- zeromask1337
318318
- zheng-chuang
319+
- miguelvictor

docs/explanation/race-conditions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The same behavior applies to form submissions. When a pending form submission is
2121

2222
Like the browser, interrupted navigations with links and form submissions will cancel in flight data requests and immediately process the new event.
2323

24-
Fetchers are a bit more nuanced since they are not singleton events like navigation. Fetchers can't interrupt a other fetcher instances, but they can interrupt themselves and the behavior is the same as everything else: cancel the interrupted request and immediately process the new one.
24+
Fetchers are a bit more nuanced since they are not singleton events like navigation. Fetchers can't interrupt other fetcher instances, but they can interrupt themselves and the behavior is the same as everything else: cancel the interrupted request and immediately process the new one.
2525

26-
Fetchers do, however, interact with each when it comes to revalidation. After a fetcher's action request returns to the browser, a revalidation for all page data is sent. This means multiple revalidation requests can be in-flight at the same time. React Router will commit all "fresh" revalidation responses and cancel any stale requests. A stale request is any request that started _earlier_ than one that has returned.
26+
Fetchers do, however, interact with each other when it comes to revalidation. After a fetcher's action request returns to the browser, a revalidation for all page data is sent. This means multiple revalidation requests can be in-flight at the same time. React Router will commit all "fresh" revalidation responses and cancel any stale requests. A stale request is any request that started _earlier_ than one that has returned.
2727

2828
This management of the network prevents the most common UI bugs caused by network race conditions.
2929

0 commit comments

Comments
 (0)