Queries in apps are becoming empty

Hello,

I've had a couple of times that when I come back to an app/page after working on another app/page for some time, that the first page is no longer working because the queries suddenly lost their content.

Undoing the changes in history is usually not a good idea since I already made several changes in other places between the empty queries are most likely caused and when i notice that they are empty.

At first I believed it was caused because I was using VS Code integration and the changes on the website where conflicting with the changes in vs code. But then I disabled VS code integration in the settings and now I still have the issue.

Do you have experience with this? What can cause this?

After posting, I found this thread:

Which describes the same problem, caused by VS code. Using the hint there to use the _historyOffset URL param I was able to find the original contant of the queries and restore it.

Most likely the issue was still caused by VS code sync, but I only noticed these specific empty queries after I disabled VS code sync.

This topic can be closed. (However, having VS code sync working without this problem would be really awesome!)

hi there, I was looking at the docs for the vs code extension and noticed there were 2 ways to edit queries:

Starting from Retool

While editing a Retool app, open the Code tab and then click the VS Code icon.

Starting from VS Code

Open the Command Palette and select the Retool: Sign In option. Follow the prompts to authenticate.strong text

I was just curious if you had tried editing from both starting points and saw the same problem

Initially I started with opening from VS code from the retool ui.
Sometimes the retool plugin lost connection to retool, then I did a signin from vs code.
I have no idea if it was related to a specific login method. The problem is that when I notice the problem I have no idea how long the query is empty.

If the retool team would work further on this, it would be handy if the url of the retool instance is remembered. This would make the login from retool method smoother. Certainly if you have to do this several times because the connection is lost.