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

[5.x] Update nocache map on response #11650

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

indykoning
Copy link
Contributor

This improves compatibility with frameworks like Vue where Html gets replaced once it has booted.

Why do we need this?
When placing the nocache tag within Vue's scope (usually id="app") our nocache tags aren't actually being replaced anymore.

Why does this happen?
Vue Replaces the html with it's computed html from the virtualdom when booting.
This means the references to the elements we've saved are stale.
Now we update our mapping after the fetch has completed so we can correctly replace our data

This improves compatibility with frameworks like Vue where Html gets replaced once it has booted
@indykoning indykoning changed the title Update nocache map on response [5.x] Update nocache map on response Apr 2, 2025
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