useRealtime join? #32
bruceharrison1984
started this conversation in
General
Replies: 1 comment 1 reply
-
|
This is the expected behavior right now based on how Supabase subscriptions work. There might be a clever way to detect that a initial query has relations and auto-fetch them on subscription changes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When utilizing
useRealtimewith a select clause, it is not applied when new data comes in.For example:
The first usage of
calendarEventwill have the joined data. Inserting a new item in tocalendar_eventwill trigger a fetch and return the newcalendarEventdata, but theownerproperty on the new data isnull. Refreshing the page correctly pulls all data.Am i missing something here, or is this intended/expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions