nextjs-subscription-payments icon indicating copy to clipboard operation
nextjs-subscription-payments copied to clipboard

Question: Passing supabase to query functions?

Open stevengrimaldo opened this issue 7 months ago • 1 comments

Just out of curiosity how come you're importing the supabase createClient() functions on the pages and passing supabase to the query functions as an argument rather than just importing the createClient methods directly into the queries file?

Wondering if this was just a matter of preference or if there was a real technical reason as to one way or the other.

stevengrimaldo avatar Jun 29 '24 03:06 stevengrimaldo