I am unsure if Softr tables are actually listening to update-records event as it is not working on my end. I tried contacting support, however they referred me back to the forums.
I have added some debug so I can see the update-records event is dispatched, so I suspect the table is not listening to the event. If I understand the docs, it says that it will re-render according to the update event.
I am unable to share my code on the forums unfortunately, hence why I contacted support first. Trying to see if anyone has successfully been able to use the update-records event?
I told them its a bug but they didn’t want to report it as one and told me custom code is out of support’s scope. After a few days they told me to ask the community as they didn’t see anything wrong with my code in hopes of a “code expert”…
I simply believe that in the backend, the listeners are not subscribing to any “update-records” event by table blocks, despite what is stated in their docs. I even told support to ask the dev team about this, but don’t think they did.
update-records event is listened by all blocks that use external data. It can be used to change/add/remove the data that should be rendered. Mostly it can be used in pair with get-records
I am using the "update-records” event in combination with the “get-records” event in the context of changing the data rendered of a table block. I have a similar setup to the example code in the docs.
Unfortunately, the data is not being changed. I have tried lots of debugging. I am able to capture the “get-records” of the table block and I can see that my “update-records” event is being dispatched with the modified data, so I suspect that the table block is not listening to the “update-records” event?