Skip to content

[Bug]: UI doesn’t update while watching local storage values #1529

Open
@rjamesnw

Description

@rjamesnw

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

An app with a page layout that uses an app ID to load a nested app does not update in the case where the parent app data responder is watching a localstorage value updated by the nested app.

Expected Behavior

The data responder in the parent app triggers as expected.

Steps to reproduce

  1. Make an app with a page layout and a Show Login menu button. When clicking the button set the local storage ‘pageId’ value to the login app page.
  2. Make another app with a login screen that, upon clicking the login button, calls localstorage.setValue (‘pageId’) and sets the ID of a landing page.
  3. Make a landing page app for after login.
  4. Make a data responder on the parent app to watch the localstorage pageId value changes. Upon change the parent app should set the app id in the page layout control to the new value.

It works only in the editor. While testing in preview the parent app never refreshes the sub app when the localhost pageId changes because the data responder fails to trigger. Resizing the page causes it to update as expected.

Environment

Using the latest version on Docker for Windows.

Additional Information

No response

Metadata

Metadata

Labels

ComponentsDedicated to Frontend Visual ComponentsJavascript FrontendPull requests that update Javascript code

Type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions