localStorage doesn't update

I have 2 different apps, opened in 2 different windows, and want to have app2 aware of a change done in app1.

  • in app1 we set a value in the localStorage
  • in app2 we look at the localStorage object in the retool globals state list

But the value is changed only upon refreshing app2's web page (we can see in our app2's inspector that localStorage has been updated though)

Is this a bug or do I do something wrong?

Thanks!

@Nikita

Thanks for reaching out and breaking this down :wave: This is a highly requested feature, and at the moment the only way to update an app for outside changes is to pull outside of it (sending information to a resource and pulling for changes from that resource in another app). With localStorage, this is not currently possible -- so I will move this thread over to our feature requests :slightly_smiling_face:

2 Likes