Skip to content

Conversation

@ctonneslan
Copy link

Summary

  • Fixed the Supabase liveProvider to properly handle multiple filters
  • When multiple filters are provided, only the first filter is used
  • Added a console warning to inform developers about this limitation

Changes

  • Modified mapFilter function in packages/supabase/src/liveProvider/index.ts to use only the first filter instead of joining all filters with commas
  • Added warning message when multiple filters are detected
  • Added changeset documenting the fix

Context

Supabase Realtime only supports a single filter per subscription (see supabase/realtime#486). The previous implementation joined multiple filters with commas, which caused invalid filter payloads and websocket errors.

Test Plan

  • Verify that single filter subscriptions continue to work as expected
  • Verify that multiple filter subscriptions use only the first filter
  • Verify that a warning is logged when multiple filters are provided
  • Check that no websocket errors occur with the new implementation

Resolves #6360

Supabase Realtime only supports a single filter per subscription. When multiple filters are provided, the liveProvider now uses only the first filter and logs a warning to inform developers about this limitation.

Resolves refinedev#6360
@ctonneslan ctonneslan requested a review from a team as a code owner October 26, 2025 23:20
@changeset-bot
Copy link

changeset-bot bot commented Oct 26, 2025

🦋 Changeset detected

Latest commit: 7096fbc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/supabase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Oct 26, 2025

Deploy Preview for refine-doc-live-previews ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7096fbc
🔍 Latest deploy log https://app.netlify.com/projects/refine-doc-live-previews/deploys/68feacc07f44e50008b04392
😎 Deploy Preview https://deploy-preview-7091--refine-doc-live-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Multiple Filters not Supported by Supabase Realtime

1 participant