[Vuejs]-Promise not executing as expected

0👍

In the line where you pass the user you put it in an object under the name user.

  let promise = dispatch('fetchUser', {user});

So you have to access the user.uid like user.user.uid, just pass the user object. Like so:

  let promise = dispatch('fetchUser', user);

If you add a catch to the promise the that one will be fired bec

Leave a comment