Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live updating for statically-referenced assets #638

Closed
mbostock opened this issue Jan 31, 2024 · 1 comment
Closed

Live updating for statically-referenced assets #638

mbostock opened this issue Jan 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

Consider the following HTML:

<img src="test.svg">

If you replace the file test.svg, it’d be nice if this immediately updated in the client. We should be able to do this in conjunction with content-based hashing #260 since we already statically detect such file references.

The same should apply to data loaders: if test.svg is generated by test.svg.js, then saving a change to test.svg.js should re-run the data loader, and if the output is different, it should have a new content hash which then triggers an update in the browser.

@mbostock mbostock added the enhancement New feature or request label Jan 31, 2024
@mbostock mbostock changed the title Live updating for statically-referenced assets (at least generated by data loaders) Live updating for statically-referenced assets Jan 31, 2024
@mbostock
Copy link
Member Author

mbostock commented Mar 4, 2024

Fixed in #843. Duplicate of #908.

@mbostock mbostock closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant