generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Always update local URL first, then RSC
This is because relying only on the Next.js router for URL updates makes it dependent on the RSC payload to resolve, which is not the case in some situations: - Offline or poor network connection - Requests waterfalling when updating too quickly Instead, the browser's history API is used for state management, and optionally on non-shallow updates we can tell the server about the updated URL to re-render and stream in RSC payloads.
- Loading branch information
Showing
1 changed file
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters