fetching data on the client (like supabase)
what's the "best practice" for fetching data that needs to be on the client? i'm looking at migrating from supabase, so all of the data fetching that i have right now would need to change completely - i have a lot of data fetching on the client with swr hooks + usequeries fetching data from supabase, so i'm thinking if this is the right approach to go with in the future or no
as in is the supabase approach (fetching from client) "better" and transferrable to neon in any way? with rls setup (which i have) it seems like it should be fine but i don't know
or should i migrate to fetching data from the server via actions etc? would require me to rewrite pretty much everything to swr / tanstack query, but is it overall the "better" approach long term? i'm kind of conflicted here since normally fetching db on the client is a nono but with RLS it seems.. more acceptable?
as in is the supabase approach (fetching from client) "better" and transferrable to neon in any way? with rls setup (which i have) it seems like it should be fine but i don't know
or should i migrate to fetching data from the server via actions etc? would require me to rewrite pretty much everything to swr / tanstack query, but is it overall the "better" approach long term? i'm kind of conflicted here since normally fetching db on the client is a nono but with RLS it seems.. more acceptable?
