erztemplerobba
Explore posts from serversPinia in Nuxt 3 composable error
Yeah I did. When I set up the StackBlitz, I realized that the problem is probably that I'm importing
saveUserResults
(which imports the store) in a Nuxt server route. Is there a way to use pinia in server routes?14 replies
Pinia in Nuxt 3 composable error
All my imports use ~~ at the beginning, not sure. But all of them work, so no problem here. The return is inside
useSupabaseApi
, just one bracket slipped to the first line because I removed some stuff to make the code more readable.14 replies
Nuxt 3 with Pinia gives me error 500
I like the /server/api/route... way for my more sensitive supabase api calls. I'll read up on the server-side supabase functions, that sounds really interesting. So far, I've only been using supabase without SSR because the RLS is so convenient.
57 replies
Nuxt 3 with Pinia gives me error 500
Yeah that makes total sense. I moved the whole supabase query to my Login.vue
<script setup>
and send the fetched data to my Pinia store and everything works fine. That's a solution that works for me, I don't really insist on having that whole function in my Store 😄57 replies
Nuxt 3 with Pinia gives me error 500
Do you think that's some kind of issue with SSR?
I'm using exactly the same setup in a Quasar app (client side rendingering) where I use Supabase queries in my Pinia store and everything works fine.
57 replies