Description
Hello, I'm facing a strange problem regarding watchers and navigation. I'm making an app that needs a user to be authenticated, nothing extraordinary. There is a simple login screen that makes requests to my authentication API and navigates the user to the home screen if the credentials are ok, nothing fancy here.
But there's one simple thing that the login screen does, it has a watcher to the password, to guarantee that it has at least 8 chars, and a watcher to the login, to guarantee that it has exactly 11 chars and all of them are numbers. And together, those two watchers set a boolean variable that controls if my login button is enabled or not.
The problem is: the watcher do work, but only if the app is open when it was not in background(i.e., it was the first time the app was open or if I manually killed it before). If I push the logout button and make the app navigate to the login screen, then the watchers stop working, and I have to manually kill the application and reopen it, so I can login again.
Do you have any suggestions of what might be?