I have a form with 6 questions on 'form' page. I add input values to userData object after switching questions. At the end of the form I send userData to firebase.
But when I switch pages, the userData object clears.
How to store userData between pages? I don't want to use localStorage because it is unsafe.
CodePudding user response:
You can use Vuex.
Vuex is a state management pattern library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion.
