Home

Issue: 2118

'from' route object in context undefined in ssr but not in spa mode.

[issue link]

With this code:

async asyncData ({ from }) {
  console.log("from", from")
}

On browser refresh, this page will log undefined in ssr mode but in spa mode it logs it’s own route. This problem defeats the ‘shallow routing’ trick described by @Atinux here:
https://github.com/nuxt/nuxt.js/issues/1322

This question is available on Nuxt.js community (#c1878)