View Transitions Script Behavior #8000
Labels
help wanted
Issues looking for someone to run with them!
improve documentation
Enhance existing documentation (e.g. add an example, improve description)
馃搵 Explain your issue
The /view-transitions/#script-re-execution section I think is not correctly directing users to the truly happy path. Ideally for most users a lifecycle event would be listened for in order to deal with script rexecution.
data-astro-rerun
should only be used when necessary, after considering using a lifecycle event.Commonly users might reach for
data-astro-rerun
when in fact they want to only run a callback on certain pages. This section could help users stay on the happy path by giving an example of checking if an element is on the page before running a function related to it like this example.The text was updated successfully, but these errors were encountered: