question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Realtime DELETE updates not being fired

See original GitHub issue

Bug report

Describe the bug

listening to DELETE events:

const bp = await this.$supabase
  .from("blogPosts")
  .on("DELETE", (payload) => {
    console.log(payload)
  })
  .subscribe()

Deleting a row in the ‘blogPosts’ table (manually from the Supabase Studio) doesn’t fire a DELETE event in the frontend.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a DELETE listener for a table
  2. Go to the Supabase Studio
  3. Delete a row from the table
  4. No DELETE event is fired as expected

Expected behavior

A DELETE event is fired and is shown in the console (console.log)

System information

  • OS: macOs
  • Browser: chrome
  • Version of supabase-js: 1.29.1
  • Version of Node.js: 16.13.0

Additional context

  • Running locally (docker self-hosted)
  • Listening to other events (UPDATE, INSERT) work as expected

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
rotemrevivo91commented, Jan 14, 2022

I can confirm that after i re-cloned the repo today the issue was gone and i could listen to DELETE events today. realtime image version: image: supabase/realtime:v0.19.3.

@w3b6x9 i’m not really sure why the issue is solved but i guess that you guys fixed it behind the scenes. Although, it might just have been a weird bug on my end and i just needed to start from fresh again). Anyways, thanks a lot to everyone who pitched in and helped!

The issue can be closed, unless you guys wants to further investigate what was going on.

1reaction
w3b6x9commented, May 22, 2022

@chipseater just wanted to confirm: did you have a primary key on your table prior to setting replica identity to full?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase node unexpectedly delete itself after a update value ...
The firebase realtime database behaved weirdly as I observed, just immediately after the SetValue called, the NOSQL nodes lights up with green ...
Read more >
Uninstalling 'uninstallable' Windows Updates - BornCity
The problem is … If an update causes issues, it's possible to open control panel, go to Programs and Features and select Installed...
Read more >
Can I delete specific items from a completed Update Set ...
I want to back off all updates that pertains to a specific table (say, "u_incident") from my completed update set, but after deleting...
Read more >
Windows Update Not Working Windows 10 Deleting Cache ...
How to fix issues you have with Windows Update not properly downloading and installing updates. Windows includes a built-in troubleshooter ...
Read more >
Having Trouble With A Windows Update? Lets Uninstall IT
Well don't panic, you can uninstall the Windows updates in Windows 11 or ... Select the update you want to remove, then select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found