You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Channel names must be unique when using multiple subscription hooks.
What does "uniqueness" mean here? Some possible interpretations:
It's an error for my code to have two useSubscription call sites using the same channel name
It's an error for a client to call useSubscription twice using the same channel name
It's an error for two separate clients to try to subscribe using the same channel name
I don't know how to interpret this advice, because I have no mental model of how channel names are used in this Postgres changes system, and haven't been able to find any model in the Supabase docs. (I've asked about this on their Discord support.)
Whatever the meaning is, what is the consequence of not using unique channel names? What bad things can happen?
Thanks again for this library! <3
The text was updated successfully, but these errors were encountered:
I don't know how to interpret this advice, because I have no mental model of how channel names are used in this Postgres
changes system, and haven't been able to find any model in the Supabase docs. (I've asked about this on their Discord support.)
I actually also do not know exactly how the channel names work. I used this with both a static string, e.g. conversations when subscribing the conversation table, and one that includes the table and the filter, e.g. conversations:inbox-${inboxId}. Both work fine.
On this page I read:
What does "uniqueness" mean here? Some possible interpretations:
useSubscription
call sites using the same channel nameuseSubscription
twice using the same channel nameI don't know how to interpret this advice, because I have no mental model of how channel names are used in this Postgres changes system, and haven't been able to find any model in the Supabase docs. (I've asked about this on their Discord support.)
Whatever the meaning is, what is the consequence of not using unique channel names? What bad things can happen?
Thanks again for this library! <3
The text was updated successfully, but these errors were encountered: