[Critical] Edit mode keeps on reloading, not allowing to edit any apps

  • Goal:
    Edit an existing app

  • Steps:
    Go to list of app, and clicks edit button

  • Details:
    Not sure what changed, but my edit mode keep on reloading. I have tried incognito mode but nothing changes.
    Here is the screen recording,

Hey @amith - thanks for reaching out.

The most reasonable explanation is that you have a JS script running on page load that is causing this infinite loop of redirects. I've seen similar behavior before, although it's definitely weird that it only happens when editing.

Is this happening with all your apps or just one? The first thing that I would try is launching your app with the URL paramater historyOffset=1, just in case the most recent edit to your app caused this issue. You might also want to check any preloaded JS that is defined at either the app or org level.

Thanks @Darren
I suspect its some preloading script on the header module.
But how do I actually remove it or edit it, as there is no way for me to get into the edit mode. No changes were made on this module, but may be some things changed on retool side which the script expected previously.

Any ideas on how to get into the edit mode to disable this ?

Are you able to open up and edit the module itself?

No,
It's does the same redirect for this module as well

If you haven't already, can you try editing the header module with _historyOffset=1 in the URL? This will effectively undo the most recent change and hopefully allow you to view and edit it. If you're seeing the same behavior, you can try going further back into its history by incrementing the parameter.

Thanks let me try to go back in history...

1 Like

Any luck here, @amith? Let me know if you need additional assistance!

Thanks for follow up @Darren I was able to go back in history, 6 months ago, and was able to disable the onload script.
This script used to work till now, so something changed on retool side recently. I will revisit our implementation.

Thanks again,

1 Like