Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Proper hot reloading using react fresh/react-refresh #31

Open
wokalski opened this issue Jan 14, 2020 · 0 comments
Open

Proper hot reloading using react fresh/react-refresh #31

wokalski opened this issue Jan 14, 2020 · 0 comments

Comments

@wokalski
Copy link
Collaborator

Currently there's a simplistic hot-reloading implementation. On an edit to a file on the server:

  1. server is killed
  2. The connection between client and server is killed
  3. client polls until server is available again
  4. client makes a request for the currently shown component
  5. server renders the component from scratch

It's good enough but it's a little bit slow. If we incorporate react-refresh it should work quite better - it wouldn't require rerunning the server which takes a considerable amount of time. This is obviously to be investigated but it should be a big productivity gain.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant