Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fast Refresh] Redesigned Runtime Error Experience #12222

Merged
merged 101 commits into from
Apr 30, 2020

Conversation

Timer
Copy link
Member

@Timer Timer commented Apr 26, 2020

This pull request introduces a redesigned runtime error experience for users who are opted-into the Fast Refresh experiment.

Notable changes:

  • Uses eval-source-map instead of cheap-module-source-map
    • Faster recompiles in development
    • Column mappings
    • Original variable names in browser debugger
  • Does not reload entire page after a runtime error (to retain application state)
    • Runtime errors are automatically cleared after a Fast Refresh successfully completes
  • New overlay is clearly minimizable (modal design)
    • Old overlay looked like a compile error, was not obvious your app was still underneath

@vercel vercel deleted a comment from ijjk Apr 30, 2020
@vercel vercel deleted a comment from ijjk Apr 30, 2020
@vercel vercel deleted a comment from ijjk Apr 30, 2020
@vercel vercel deleted a comment from ijjk Apr 30, 2020
@Timer Timer marked this pull request as ready for review April 30, 2020 12:22
@ijjk

This comment has been minimized.

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 💯

@Timer Timer merged commit fbea795 into vercel:canary Apr 30, 2020
@Timer Timer deleted the refresh/redbox branch April 30, 2020 14:50
rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants