nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

how to use useSupabaseClient in my custom composable ? #290

Open sanba-anass opened 1 year ago

sanba-anass commented 1 year ago

Version

@nuxtjs/supabase: nuxt:

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

[nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. Find out more at https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables.

CodyBontecou commented 1 year ago

What issues do you see when you try using it within your custom composable?

This might be the solution you're looking for - https://github.com/nuxt-modules/supabase/issues/232