Rendering doesn't wait for serverPrefetch with Pinia store #548
-
DescriptionI am having an issue with rendering on SSR doesn't wait for onServerPrefetch to be done before returning from renderToNodeStream
onBeforeRender: Initial Store State Set is logged before serverPrefetch is fired. Error Message + Error StackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The thing here is that To fix this you can return a |
Beta Was this translation helpful? Give feedback.
-
Tried it, didn't help. You don't use that there. I tested with that and the prefetch is done before returning the response to the client, but after the pageContextPromise is called. |
Beta Was this translation helpful? Give feedback.
-
In my code it looks like the serverPrefetch hook just doesn't get waited for. |
Beta Was this translation helpful? Give feedback.
-
The latest release resolved the issue. |
Beta Was this translation helpful? Give feedback.
The latest release resolved the issue.
Thank you!