How to update datagrid display UI after inserting data with logic

Looking for quick help on a technical bug or limitation?

I inserted my new data into the database, then fetching the data via supabase’s postgRest. But it doesn’t show the inserted data, it only shows after I click reload the page. What do I need to do so that it can immediately show the data I just inserted into the DB on the datagrid?

what are you doing with the fetched data are you writing it to the datagrid data variable? if you show us your workflow it will be clear for us

1 Like

Hi @dvthang774

We have a known issue with refreshing data in the data grid. Is the variable being updated correctly after the pg request?

1 Like

Hello, I’m new to these development topics, but my solution for that situation was to create a Boolean variable and condition the datagrid load to that variable. In the workflow, after inserting the data, you change the variable to false and change it again to true to force the datagrid to reset with the new data without having to reload the page.

I don’t know if it’s the best way, but it’s the only one I’ve come up with.

1 Like