refine
                                
                                 refine copied to clipboard
                                
                                    refine copied to clipboard
                            
                            
                            
                        [FEAT] Supabase data provider should be able to use separate schema for each request
Currently, Refine's supabase data provider can only use the schema given globally by the supabase client. Therefore data hooks cannot pull data from different schema.
To solve this problem, data hooks should get meta.schema and be able to send requests to separate schema for each request.
Discussed in https://github.com/refinedev/refine/discussions/5094
Originally posted by horizon-phoenix-fly October 11, 2023 I'm trying to fetch data from different schemas using Supabase. By default, Refine only allows access to the public schema. However, I discovered that we can utilize multiple dataProviders, so I set up two: one for the public schema and another for the
bookingschema.After doing this, I encountered a console warning:
Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.Can someone advise on the proper way to fetch data from multiple schemas in Supabase to avoid this warning? Thanks :)