Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #9656
Closed
Open
Issue created Sep 17, 2020 by Administrator@rootContributor

[V4] Fast Refresh should dismiss runtime errors

Created by: gaearon

  1. Type foo.bar() inside a component
  2. See runtime error overlay
  3. Change that to foo.baz() and save

Expected: see the foo.baz() error overlay instead. Actual: keep seeing the foo.bar() overlay with the new error being "added" (the screen says 1 of 2 errors).

In other words, when we do a Fast Refresh, we should always be dismissing the runtime overlay first.

This is because the previous error is stale by the time you save the code and likely irrelevant.

Assignee
Assign to
Time tracking