It doesn't matter what file it's in...it can still happen multiple times
Oh alright
What seems to be the issue?
Its my first time ever doing realtime sorry
I don't know. Like I said, you may be calling subscribe multiple times
I've tried unsubscribing but then after I unsubscribe I do not get callbacks
So how many of these come through and are the events the same?
No it increases each time
The amount went from 16 to 23 (I just counted)
The event are the same it's the callback that gets called
What amount?
The callbacks
Definitely sounds like you're subscribing multiple times without unsubscribing
^
Is there a way to re subscribe when there's a change?
No, that's not the solution
Hmm
What do I do?
Because after unsubscribing you get no callbacks
And you can't re subscribe either
Do I put an unsubscribe call inside the function
?
sorry, i don't know. it depends on your logic
Thanks for ur help during the Office Hours I managed to solve the issue. I jsut got the change from the Payload and did it that way rather than calling the function.
[SOLVED] realtime calls the function multiple times when detected change
Recommended threads
- Custom Domains with Cloudflare for SaaS ...
Hi! I'm using Appwrite Cloud Sites with Cloudflare for SaaS for multi-tenant custom domains. Problem: Custom domain: donate.pekeetong.my → CNAME to sites.dono...
- [SOLVED] Get Relations when using Tables...
Hi there, I have a table containing a relation column with a one-to-many relationship to another table. When Using TablesDB.GetRow in "node-appwrite" i get all ...
- Appwrite loading issue with Nuxt UI
For some reason when I add nuxt ui to my nuxt 4 project, appwrite will build the project but the project website will load indefinitely. Without adding Nuxt UI,...