Inconsistent Set Value on Table Save

Hello. I'm looking to workaround a bug i'm seeing in Retool.

I have a table within a ListView compenent that has an editable column. I have an event set on the 'save' button that takes the ChangesetArray of that table and saves it to a temporary variable.

The issue is that it seems to be dropping rows.

If the table has 3 rows with changed values, when the event runs the Set variable action will only send 2 rows worth of data to my temporary variable. But this happens randomly.

I can run the 'save' and it works fine twice in a row, then perhaps on the 3rd time it will drop a row.

I've tried various debounce settings but it doesn't seem to have an effect.

Any help would be appreciated.

In the process of debugging this, i appear to have found the fix.

I setup a script that printed the current ChangeSet array to console after each cell change, so i could see that changes were being committed.

Once i did this, the problem went away.

1 Like