An open API service indexing awesome lists of open source software.

https://github.com/exogen/next-error-remount


https://github.com/exogen/next-error-remount

Last synced: 1 day ago
JSON representation

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.