Skip to content

Update data on file change #10

@AntoinePrv

Description

@AntoinePrv

Since the data is loaded manually, and since we deactivated expensive file hashes, there is likely no notification when the file changes.

Since this uses a server extension, we can add another special route to listen for file changes and reset the DataModel.
Project like watchfiles can help to efficiently detect/listen for changes.

On the client-side a websocket connection or polling on this route will let the frontend know when to update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions