# Variable data resetting when switching to a new page

**URL:** <https://community.weweb.io/t/variable-data-resetting-when-switching-to-a-new-page/15514>\
**Category:** How do I?\
**Tags:** binding\
**Created:** [January 22, 2025, 11:53am UTC](https://community.weweb.io/t/variable-data-resetting-when-switching-to-a-new-page/15514 "2025-01-22T11:53:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mick](https://community.weweb.io/u/Mick)\
**Post date:** [January 22, 2025, 11:53am UTC](https://community.weweb.io/t/variable-data-resetting-when-switching-to-a-new-page/15514/1 "2025-01-22T11:53:50Z")

</div>

Hi, I have a workflow which copies the output of my json into a variable based on a button click. In the workflow I run the test and I can see the data in the variable. When I open a new page and try do the binding to a component, the variable data has been reset.

Thanks

 ![properties](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a5b8f5923d0acc21939d6bda5bc1c5becc8bc448.png)

Solved - Ok needed to set preserve on navigation.
