Does "update-records" event work?

Hello,

I have a code similar to “update-records” in the docs combining both of that and “get-records”: Custom Code Events and Style Selectors – Softr Help Docs

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. :thinking:

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?

Thanks.

Support telled me there is a problem with this

When did they tell you this? :thinking:

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.

This has pushed me back at least 2 weeks now…

Kind of being left no choice but to mention you here… @artur
Any help regarding this?

@Zorro are you referring to this one ?

and in inline edit context ?

@artur No, I am referring to this: Custom Code Events and Style Selectors – Softr Help Docs

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?

We are using Airtable if that helps the case.

Will share next week internally and see how to fix… is it an issue for table only or for all blocks ?