browser hook?
What would be the correct way to trigger a function once the page is loaded in the browser, after SSR?
I'm not sure I'm understanding well how ssr and onMounted work together.
onMounted triggers once the component is loaded. But if the page is rendered server side, then onMounted would ... be triggerred on the server side?
Is there a "pageLoadedInTheBrowser" hook?
I'm working on a component containing on scroll animations. I want to grab a list of elements with querySelectorAll (or is there a better way?) and apply them an observer with IntersectionObserver().
Thanks for your help!
eric
I'm not sure I'm understanding well how ssr and onMounted work together.
onMounted triggers once the component is loaded. But if the page is rendered server side, then onMounted would ... be triggerred on the server side?
Is there a "pageLoadedInTheBrowser" hook?
I'm working on a component containing on scroll animations. I want to grab a list of elements with querySelectorAll (or is there a better way?) and apply them an observer with IntersectionObserver().
Thanks for your help!
eric