`dashboard-spa-container` forces Custom UI app in Frame component to remount roughly every 14-15 minutes

Seeing an odd behavior. I have a native globalSettings page serving as my ‘Admin’ page for my Forge UI Kit app. It uses all native UI Kit components. I added in a Custom UI app, which is served within a Frame component, and that Frame component is embedded within a UI Kit Modal.

So, the path to launching and mounting the Custom UI app is:

  1. Go to Admin page
  2. Click button which opens Modal component
  3. Modal loads and renders Frame component
  4. Frame component renders initialized Custom UI app

Every (roughly) 14 to 15 minutes, that Custom UI app within the Frame reinitializes. This happens even while actively typing or interacting with the app within the Frame, so it’s not an idleness timer.

Is this expected? I cannot find any documentation indicating that there is a fixed, inexact (14 to 15 minute) timer on Frame components, or Modals, or Custom UI apps embedded within Frames.

I’ve implemented immediate recovery mechanisms so that my users don’t lose work (the Custom UI app is a text editor), but the sudden remounts are jarring. They’re also unpredictable, because sometimes the remount will be after 14 minutes, other times as much as 15 minutes, so I can’t add a ‘timer countdown’ to it to prepare users for the screen to flicker.

I’ve tried using Realtime to send a periodic heartbeat from the Custom UI app through the Forge bridge to the underlying page, thinking that maybe the 14-15 minute timer was an idleness issue and that an event fired from within the Custom UI app to the Forge bridge would reset the clock, but it made no difference.

So, sort of at a loss for this, and the two questions are…

  1. Is there a 14-15 minute timer on the dashboard-spa-container iframe component?
  2. Can that timer be extended or reset with certain actions, such as specific heartbeat communications via the Forge bridge API or something else?
  3. Is this 14-15 minute remount behavior inherent to Custom UI apps, or to Frames, or to Modals, or is it universal?
1 Like

@VickyHu Do you know anything about this by chance?