diff options
author | 2025-03-03 09:35:14 -0500 | |
---|---|---|
committer | 2025-03-03 09:35:14 -0500 | |
commit | 84e94cc85cc0f4ea9b5dba2009dc89e83a798f59 (patch) | |
tree | 2170a1edcc981e212e5430aafae2121de1d84587 /packages/integrations/vue | |
parent | fac32ad98d66b73382f35d26a69352e566cd94d9 (diff) | |
download | astro-84e94cc85cc0f4ea9b5dba2009dc89e83a798f59.tar.gz astro-84e94cc85cc0f4ea9b5dba2009dc89e83a798f59.tar.zst astro-84e94cc85cc0f4ea9b5dba2009dc89e83a798f59.zip |
Prevent rerunning scripts already ran in router (#12985)
* Prevent rerunning scripts already ran in router
In a long session you might navigate between several pages, some contain
the script and some not, but nevertheless the script should run a total
of 1 time.
This also helps with smaller bundled scripts in production, where some
are inlined.
* Add changeset
* better key
* more concise
* review changes
* move stuff around
* fix types
* take Martin's suggestion
* run detection when executing scripts
* adds an e2e test for data-astro-rerun
* fix support for data-astro-rerun
---------
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/vue')
0 files changed, 0 insertions, 0 deletions