Suggestions to doc update related to onServerPrefetch #7917
              
                Unanswered
              
          
                  
                    
                      stoivo
                    
                  
                
                  asked this question in
                Help/Questions
              
            Replies: 1 comment
-
| Agree, The current example in verry confusing | 
Beta Was this translation helpful? Give feedback.
                  
                    0 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.
-
I was reading about pinia SSR support when I came over onServerPrefetch. I headed over to the official documentation for vue, link below. I might be wrong but I think the comment in the example misleading.
https://vuejs.org/api/composition-api-lifecycle.html#onserverprefetch
The current example is
I am thinking of the code/comment in onMounted. The onMounted hook will not but called during SSR,
This hook is not called during server-side rendering.ref docs on onMounted.https://vuejs.org/api/composition-api-lifecycle.html#onmounted
My suggestion is
Beta Was this translation helpful? Give feedback.
All reactions