I have an issue with get the right data after I save a field and the id replaced in the url.
I am using retool to build back office and I have some fields that I can edit and then save them, it’s saved to my rest api in the db, after save it’s changes the id for my form and the id represent in the url, I changed the id in the url on success of the save with go to app option, I added the new id in the query and the url gets the correct id after save but when the query to get the data happens it’s still show me the data for the prev id and only when I manually refresh it’s shows the correct data.
I don’t find any way to do it except use go to app with open in new tab, any suggestions please?
Can you share a screen recoding of the behavior or some screenshots of your set up?
To confirm, the steps.
Your app loads and a query runs to populate a table with data
users can edit and save their edits, using a form component
the save event writes the updates to the table in the DB
you change the id in the URL params, based on the id that was used in the form update
you use 'go to app' to load the new URL with the new ID in the url params
when the query to get the updated data runs, it is not showing the changes made when the save event occured
I am curious why you are using 'go to app'. Once you save, you should just run the query to get data from the DB and it should populate with the updated data. Is there a reason why you are using URL params?