Static GitHub Issues

[1648] AsyncData (axios) creates unexpected session

prev: Hot Reloading of Sass in Assets folder
next: Simultaneous route transition

While enabling sessions in Express with 'saveUninitialized' as true, I figured that express saves one more irrelevant session other than connect.sid related session and with each refresh it generates one more session.

In this problem when page first loads I get two session. One with my cookie, other with asyncdata axios. So with each refresh axios in asyncdata generates a new session while my original cookie related session just touched.

Does asyncData works likes this or this issue based on axios ?

image

image

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1472">#c1472</a>)</em></sub></div>