Skip to content

Feature: Auto-reload from local file#75

Open
JeroenvdV wants to merge 2 commits intonowthis:mainfrom
JeroenvdV:feat/auto-file-reload
Open

Feature: Auto-reload from local file#75
JeroenvdV wants to merge 2 commits intonowthis:mainfrom
JeroenvdV:feat/auto-file-reload

Conversation

@JeroenvdV
Copy link
Copy Markdown
Contributor

@JeroenvdV JeroenvdV commented Dec 6, 2023

Updates the 'Load from file' functionality to auto-reload the file contents if the file is changed on the local machine. It stops updating when other changes are made within the interface. Note that this isn't supported yet by all browsers, so the existing method is kept as a fallback.

Limitations:

  • Currently the auto-reload functionality is not optional and always on.
  • There is no single event that catches changes to the value of the textarea from both user actions and programmatically changing the value, so we rely on a dirty boolean which needs to be set manually whenever the value is updated in the program. This could be prone to future bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant