Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Realtime data incorrect when a row is deleted #670

Closed
3 tasks done
asamashahbaz opened this issue Jul 27, 2024 · 0 comments · Fixed by #671
Closed
3 tasks done

[Bug]: Realtime data incorrect when a row is deleted #670

asamashahbaz opened this issue Jul 27, 2024 · 0 comments · Fixed by #671
Labels
bug Something isn't working

Comments

@asamashahbaz
Copy link

asamashahbaz commented Jul 27, 2024

General Info

  • I checked for similar bug report
  • I am using the latest version
  • I checked the troubleshooting page for similar problems

Version(s)

2.5.3-wasm0

Kotlin Target(s) and their respective versions

JVM 17 and Android 14

What happened? (include your code)

val channel = supabase.channel("realtime:countries")
launch {
    channel.postgresListDataFlow(table = "countries", primaryKey = CountryDto::id).flowOn(Dispatchers.IO).collect {
    println("observeCountries: $it")
}
channel.subscribe(true)

The code above prints fine when a new row is added or an existing row is updated. However, when a row is deleted, it is still included in the response.
I have run the following query: ALTER TABLE countries REPLICA IDENTITY FULL;
RLS is disabled.

Steps To Reproduce (optional)

No response

Relevant log output (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant