[Vuejs]-How to make a plugin work on refresh? (Nuxt)

0👍

I solved this by wrapping the call to this.$isSignedIn() in a promise which makes a few attempts to resolve this.$isSignedIn() and on success sets a data prop on my component. This then acts as the trigger for other things to happen as the sign in is ‘complete’ at this point.

Could not find another way to do it without modifying the NPM.

Leave a comment