Nuxt.js: Error using transition (to, from) {}

Created on 17 Aug 2017  路  2Comments  路  Source: nuxt/nuxt.js

Hey there, I guess I found a bug on Nuxt RC4 related with page transition as a function.

I thought was something related with my project but I reproduced the same glitch here. Try to navigate to about and go to another page...

IF a page have transition fn inside, when you try to leave NUXT stop to work.

    transition(go, from) {
      console.log(go);
      console.log('');
      console.log(from);
    },


Regards,

This bug report is available on Nuxt.js community (#c1248)
available soon bug-confirmed

Most helpful comment

Hi. Thanks for the report. I've pushed a fix, however, this bug should not happen in normal conditions as transition is expected to return an object! So workaround for now until next release is:

 transition(go, from) {
      console.log(go);
      console.log('');
      console.log(from);
      return {}
    },

All 2 comments

Hi. Thanks for the report. I've pushed a fix, however, this bug should not happen in normal conditions as transition is expected to return an object! So workaround for now until next release is:

 transition(go, from) {
      console.log(go);
      console.log('');
      console.log(from);
      return {}
    },

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredreich picture jaredreich  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

uptownhr picture uptownhr  路  3Comments