Open
Description
Describe the bug
Right now, Supabase Realtime does not support multiple filters. If used, the live provider for supabase will send an invalid filter payload, causing the realtime request to fail.
Steps To Reproduce
- Create any realtime resource
- Add more than 1 filter to the resource (I was using a useList hook with multiple objects in the filters option)
- Watch websocket network requests, it will show an error.
Expected behavior
I think we should either log a warning if we see multiple filters, or naively take the first one?
Packages
- supabase realtime v2.30.34 (not latest, but also not fixed in latest)
- @refinedev/supabase 5.9.4
Additional Context
See here for Refine's implementation, where it is joining each filter with a comma.
See here for feature that is being discussed. No real activity it seems.