On my homepage I have a form with 2 questions. Using useState to set the values and router.push({query:{}}) to bring them to /page2 to complete 5 more questions. To get the values from the 2 questions on the homepage I'm using const {foo} = router.query on /page2.
Is this practice ok? Should I be getting those values from the 'state' instead of router.query?