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

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

@wokalski

Description

@wokalski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions