Skip to content

[hmr] Make the change-detecting behavior consistent #411

@CNSeniorious000

Description

@CNSeniorious000

Currently, changes made during a hot-reload trigger an immediate reload afterward. However, changes during the first run won't trigger a reload upon completion, as the watchfiles watcher only starts after the first run to reduce startup overhead.

I've thought 2 ways to implement the desired consistent behavior:

  1. Start watchfiles from the beginning from a daemon thread (this may cause segmentfault on Linux when shutdown, see hmr-daem/v0.4)
  2. Run stat checks before starting watchfiles. Blocked by [hmr] Support more watcher backends #410

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions