Testing code inside onNuxtReady callback #862
-
|
Hi, I have a component which is loading some data in a Pinia store (via an API call) and I need it to run on the client side, so I put the call inside It seems that the I've looked around on Google and StackOverflow, and even here in the issues/discussions, and I can't find any resources discussing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Ah, I tried asking ChatGPT, and while it didn't give me a useful answer, it pointed me in the right direction of mocking the |
Beta Was this translation helpful? Give feedback.
Ah, I tried asking ChatGPT, and while it didn't give me a useful answer, it pointed me in the right direction of mocking the
onNuxtReadyfunction itself. Just putting this modification of my reproduction here in case anyone else encounters the same issue: https://stackblitz.com/edit/nuxt-starter-haepuw?file=app.nuxt.test.ts&view=editor