question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

maybe a bug of fast-refresh

See original GitHub issue

Describe the bug

An error occurs when hmr are constantly triggered. I’m not sure if this is a fast-Refresh issue. Hope to get your answer, thank you very much!

Reproduction

https://github.com/hemengke1997/refresh-bug

Reproduction Step

  1. yarn && yarn dev
  2. constantly trigger hmr in src/Container.ts

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 1.11 GB / 15.87 GB
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.24.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.62)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @vitejs/plugin-react: ^1.0.7 => 1.1.4
    vite: ^2.7.2 => 2.7.10

Used Package Manager

yarn

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bluwycommented, May 20, 2022

Make sense 👍

0reactions
sapphi-redcommented, May 20, 2022

@bluwy Should this issue be closed as websocket error will be shown by #7111 and docker documentation is tracked at #4116?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fast refresh is taking longer than complete refresh of mater...
Fast refresh is taking longer than complete refresh of materialzed view, could you tell me why? I checked metallink, it was a bug...
Read more >
Complex materialized views and fast refresh
We have an outstanding bug in some instances of fast refresh materialized views when the definition of the materialized view references a ...
Read more >
Fast refresh in react native always fully reload the app
Any idea why it wouldn't work in a large project? I mean, there are any know issues with fast refresh related to the...
Read more >
Fast Refresh
For example, maybe your component also exports a constant, and a non-React utility module imports it. In that case, consider migrating the ...
Read more >
104176 - fast refresh on window close
Expected Results: The behind pages should redraw or whatever more quickly. ... I believe that this bug may be the same or is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found