You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Consider the following HTML:
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 bytest.svg.js
, then saving a change totest.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.The text was updated successfully, but these errors were encountered: