Load 'load' function only once #7816
Unanswered
jdgamble555
asked this question in
Q&A
Replies: 2 comments 8 replies
-
Can you give a code example? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm just asking as a concept. I really just need to load data from the server on the first load (for seo), then load in the browser on any route changes afterwards. There isn't always a need to run from the server except for the first page load of the app. This would include any route afterwards, or the same component with a different parameter etc. Is this possible? J |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I load the
load
function only once when the app is first loaded? I have a route with a[slug]
that I need to run on the server on the first load, but would like to not reload the load function on the second loads to the same component (different path).I want to load the load function once, then just reload my component without the load function.
J
Beta Was this translation helpful? Give feedback.
All reactions