[Vuejs]-Pinia firebase user emailVerified property loses reactivity

0👍

For some reason when replacing my watcher with setInterval it seems to works… although this is not the ideal solution

setInterval(function () {
      if(user){
        if(user.value?.emailVerified) {
          console.log('Direct user to new page');
        }
      }
}, 5000); 

Leave a comment