Open Venegrad opened 2 years ago
error in client side route change, need to fix that, any idia?
I don't understand why it doesn't work. Did you check the browser storage to see if the cookie is actually set when clicking the button?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I don't understand why it doesn't work. Did you check the browser storage to see if the cookie is actually set when clicking the button?
asyncData is calling every time, when u enter nuxt page. In asyncData im calling store action store.dispatch("games/cookieWatcher");
what reading cookie store this.$cookies.get(
tickets${ctx.getters.getCurGame});
Im using nuxt $cookies for save some data. When some buttons clicked, im updating cookies:
Cookie reading action from store:
On page im using:
But thats not working. When i leave page and enter anotherm new cookies is not reading, only after page reload by f5, cookies reading.
for fix that, i need to watch route
Guess thats error, cuz cookie need correctly reading from async fetch or asyncData