It would be easier to help if you could provide a complete minimal example (with some dummy data) that replicates the error.
In the meatime, you might find this post helpful
You can find lots of examples of multi-page apps here:
Be sure to check out example #7 on sharing data between callbacks and # 13 on syncing components between pages.