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
Is there a possibility mark a piece of code as only runnable when an actual navigation has occurred in a load?
exportconstload=asyncfunction({ route }){/** * Some other code fetching data that will be shown when entering the page */// This will now run on pre-load since it references route.id, so there's no guarantee that the user visited the page if pre-load was on hovertrack('visited page',{route: route.id// Tracking that a page was visited})};
Describe the proposed solution
A way to mark a piece of code as only runnable when the actual navigation has been performed
Alternatives considered
Moving it into the +page.svelte file, but it can quickly clutter up the +page.svelte file if there's a lot of things you just want to run during a navigation.
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
Is there a possibility mark a piece of code as only runnable when an actual navigation has occurred in a
load
?Describe the proposed solution
A way to mark a piece of code as only runnable when the actual navigation has been performed
Alternatives considered
Moving it into the
+page.svelte
file, but it can quickly clutter up the+page.svelte
file if there's a lot of things you just want to run during a navigation.Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: