Using state variables in diffrent pages

Hey,
I wanted to know if there is a way to use state variables in diffrent pages while keeping the data in the variable.
I saw this post that looks to relate to my issue but maybe there is a better more robust way.

Thank you

Hey @tomer_erez-ketzev

To keep the state across multiple pages, you can

  1. Store it in a local storage and access it via globalThis.localStorage in dynamic expression as suggested in the other post
  2. or You can pass it in the query params while navigating from one page to another page.

Thanks

Hey, I know that many of the low-code platforms enable it as a built in product just like state variables. so maybe it can be also as a proposition.
Either way thank you for the solution.