Firebase Raw Mode wiped on open

Hi everyone

I've encountered a recurring issue when using Firebase Raw Mode in Retool. Multiple times now, when opening an existing script that I've maintained for months, the entire script content gets wiped upon opening. This happens despite the script being previously saved and functional.

To recover the code, I always have to check the version history diff, which is extremely frustrating. While this appears to be a bug, it's particularly challenging to reproduce as it doesn't follow a consistent pattern.

I've noticed it occurs most frequently when I Command-click (cmd + click) to navigate to the script from another script that references the Firebase script. Interestingly, all handlers remain intact - it's only the actual code that gets cleared, leaving me with an empty function.

Has anyone else experienced this or have any insights into what might be causing it?

2 Likes

Hi @zach_b Thanks for reporting this! As you noted, it's a tricky bug to reproduce :thinking: I haven't been able to reproduce it yet, and I don't see similar reports. Any chance you could share an app export in case it is more app specific? I will keep trying to reproduce!

Does the query get saved as a blank query (does the query start to fail, now that it is empty)? I am wondering if this is being logged in the app history

Hi Tess

Yeah it's really tough to reproduce. If I don't open the app function the app will work perfectly but once I've opened the function that function will begin to fail.
Something I wanted a raise a while ago and might be related to this is that when you click save on one function and slick through to another function it shows that function is "saving" as well with the loading. Not sure if this has any effect on the subsequent function that was clicked but thought it was worth noting because it could be related.
How can I share the export with you to ensure privacy and protection on our end?

Interesting :thinking: Yes, I'll send you a DM!