-
Notifications
You must be signed in to change notification settings - Fork 65
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
reload collateral resources #2057
Comments
I don't think this problem is limited to development only, it is also very much present when working on the content in preview. So I'm not sure the CLI is the right place to solve for it... Maybe a better solution would be to add a wrapper for Wdyt? |
yes. this is even a better solution - as long we use a javascript proxy for fetch, and not swizzle its methods. |
I just realized that with manifest v3, the sidekick extension will no longer have access to in the const docData = document.documentElement.dataset;
const deps = docData.dependencies && docData.dependencies.split(',) || [];
deps.push('/footer');
docData.dependencies = deps; resulting in something like <html data-dependencies="/nav,/footer"> which the sidekick can retrieve in the publish action: const deps = document.documentElement.dataset.dependencies?.split(',); wdyt? |
good idea, but I wouldn't add it to the
or via maybe using a non-standard:
|
Why not as data attribute on the If we want to add it as a separate element to the @davidnuescheler wdyt? |
yeah, i agree that this is not primarily a dev problem as devs normally figure out what needs to happen to reload the respective pieces. i think there is a more general issue with cache handling in browsers with fetching |
Is your feature request related to a problem? Please describe.
when developing on collateral resources, like the nav or the footer, reloading (re-previewing) their content is not ideal.
one has to click preview in the word/google doc, which then opens a new page etc.
the reload button of the sidekick in the developer mode is great, but it should be extendable to included content (also content fragments).
Describe the solution you'd like
/cc @rofe
The text was updated successfully, but these errors were encountered: