https://github.com/exogen/next-error-remount
https://github.com/exogen/next-error-remount
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/exogen/next-error-remount
- Owner: exogen
- Created: 2019-06-14T16:24:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:40:23.000Z (about 3 years ago)
- Last Synced: 2025-03-25T18:51:03.249Z (10 months ago)
- Language: JavaScript
- Size: 1.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js remounts app on error
## Observed Behavior
When an error is thrown during render that gets caught by Next.js’ error
boundary, the entire app is unmounted, then mounted again.
I assume some element above the `` either changes types, or is added or
removed, such that React cannot update the existing children and needs to
remount everything.
In practice, the only noticeable change after the remount is that the ``
has been replaced by ``. So it seems possible at least to keep the
`` mounted the whole time.