I’m wondering whether there is a way to listen to realtime updates to collections with Realtime enabled in Supabase. I have a workflow that parses my collection into a new Array and then I bind my frontend to it.
Is there maybe some JS hook I could use to listen to the realtime update and also to trigger a workflow?
You can dig into wwLib and play with the internal store, but it’s probably not a safe way for production, unless someone from the team says it is.
You can play with a simple custom component that watches a value using vuejs, and triggers a workflow when the watched value changes.
The second one sounds like a plan I’m thinking of doing keystrokes like this too.
Hey,
I will share your usecase with the product team, but we have in mind for a long time to have “watch” workflow.
What is also on the way is adding a “onUpdate” hook on Supabase collection
For keystrokes, can’t you use a global workflow with listeners?
I’d like to implement this more as a nocode thing. So also nocode people can set up keystroke triggers from a component easily with nocode.
Do you know if the onUpdate feature was ever implemented?