Refresh of multipage apps displays elements from all pages

Hello Team,

When you click refresh button in the browser sometimes elements from all pages of multipage app are displayed and queries are failing. Happens on cloud.

Steps to recreate (there are other scenarios but it's easiest for me to reproduce):

  1. Open application in "edit" mode
  2. Click "Play" button to open live mode
  3. Click refresh button in the browser.

Happens on Mac and Windows for different applications.

Could you please advise?

1 Like

I am experiencing this issue as well.
If I press a button with a go to page event handler the url changes but nothing changes in the page.
If I manually change the url it goes to a page properly, and if I paste the url into another tab and refresh it works as expected.

Only going from the edit menu to preview then refreshing results in this bug.

Hi @heynoway,

Apologies for the issue, could you share a screen recording of this happening? I was not able to repro this behavior following the steps you mentioned :sweat:

Hi @Chase1, could you also share a screen recording of this behavior? I tried to reproduce this by going from the app editor to viewing the live app.

Let me know if I missed any steps.

Hi Jack,
The problem continued for a few days, but eventually stopped occurring. If I get the problem again I will definitely screenshot it.

1 Like

@Chase1 glad to hear the issue stopped occurring! :sweat_smile:

Let me know if this comes back :+1:

Hello Jack, I had it recur today. it occured when going from edit to live app, and when refreshing the app after problem had occured. When going from apps page to the app or directly to the url no problem occured.

Oh wow that is very unusual, I have never seen that happen before :flushed:

That is some silver lining that it isn't occurring when going straight to the app or url directly.

Does this happen every time you go from edit to live app?

Can you share a JSON export of the app so I can test out and see if this happens when I import the app?

I am also experiencing this issue intermittently-- and unfortunately can only reproduce on pages with confidential business info so I cannot screenshot.

Hi @Michael_Friedman,

Apologies for the issue. Are either you or @Chase1 on self hosted or on cloud?

I was very surprised to hear from Chase that refreshing the app doesn't fix it. I wonder if this could be related to how the app is having any logic related to page changes processed :thinking:

Do you both have page change on a user event such as a button click?

Could either of you share a JSON export of the app?

I was talking to some engineers and we have a hypothesis on what is causing this.

  1. the plugins all have missing screen properties -- without a screen, the app thinks the components are global and so they'd all appear at once
  2. for some reason, the viewer mode doesn't recognize this as multipage app and is ignoring the screen properties.

Once I get the JSON export I can check and see if screen is set to null or the page ID. If you can export when it is in the broken state I can then check the JSON to see that value.

This happens fairly rarely. 16 days of roughly daily use between the most recent and the second most recent.

I am not self hosted.

I have a page change on a navigation component on every page and various other buttons with go to page events on every page in the app.

Hi @Chase1,

Apologies for the issue. That is good to hear that the issue is infrequent. I am not sure what could be done to ensure it never happens :sweat:

Bugs like this that are hard to reproduce as normally I would get a JSON export of the app and show it to our engineers if we had a consistent pattern of steps to reproduce the issue.

I am not sure if this is related to how the browser is constructing the DOM of Retool elements but definitely DM me if you notice any patterns for reproducing this :pray:

Hi,

I just had this issue occur as well - it happened a few times yesterday, and I grabbed a json export and some screenshots when it happened this morning. Unfortunately Retool forums is saying I can't upload attachments as a new user?

Hi @jleemartin,

Thank you for capturing that with the json export and screenshots!

Apologies for that confusion with the forum, I believe that is a rule to prevent spammers with new account from posting large attachments.

You should be able to send the attachments in a direct message to me :+1:

@Jack_T I'm also not seeing an option to dm - not sure if that's also related to permissions as a new user?