NuxtN
Nuxt11mo ago
evanlegamer

Weird behavior between Nuxt 3.11 and Nuxt 3.15

Since I updated to Nuxt 3.15, basic code is not working anymore.
mounted() {
  console.log("Initialization");
  console.log(this.$route);
  console.log(useRoute())
  let token = useRoute().params.token;
  console.log("token", this.$route.params.token);
  console.log('token', token);
}


How is it possible that token are undefined since they are defined just before and nothing happen between.

What I am missing ?
image.png
Was this page helpful?