[Vuejs]-How to preserve the state after press of refresh button in vuejs

0👍

Try to save state to localStorage or sessionStorage.

  1. If user navigates to the feedback page -> save the flag to the localStorage
  2. At the app start, you should check is flag exists and redirect a user to the feedback page.
  3. Remove flat when user submits feedback (prevent further redirects)

Leave a comment