Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
rjamesnw opened this issue Feb 12, 2025 · 0 comments
Open
1 task done

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

rjamesnw opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
Components Dedicated to Frontend Visual Components Javascript Frontend Pull requests that update Javascript code

Comments

@rjamesnw
Copy link

rjamesnw commented Feb 12, 2025

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

@FalkWolsky FalkWolsky added Javascript Frontend Pull requests that update Javascript code Components Dedicated to Frontend Visual Components labels Feb 13, 2025
@FalkWolsky FalkWolsky moved this to 🆕 New in Lowcoder Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Components Dedicated to Frontend Visual Components Javascript Frontend Pull requests that update Javascript code
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants