Skip to content

You tried to access an instance of UserStore that was not ready yet #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
diego-lipinski-de-castro opened this issue Oct 19, 2020 · 5 comments

Comments

@diego-lipinski-de-castro

My app started giving this error, I would like to know the possible causes because it was working just perfect and out of nothing, this started, sorry if its documented, I tried searching and reading but could find something about

@escamoteur
Copy link
Collaborator

In case you upgraded to V5 there has been a change. Are you using named registrations?
Also please do a flutter clean and try again

@diego-lipinski-de-castro
Copy link
Author

Im using get_it: ^4.0.4 still, tried flutter clean and problem persists
image

This is the the file where I bootstrap the store, when I push to the /Pages route, is when I access the store, and then, BOOM

@diego-lipinski-de-castro
Copy link
Author

I tried putting await getIt.allReady(); before calling the next route, it never goes, its like it never gets ready

@diego-lipinski-de-castro
Copy link
Author

diego-lipinski-de-castro commented Oct 19, 2020

Oh, i think i just found the problem, the store is throwing an error on the initialization, thats why it does not proceed

@diego-lipinski-de-castro
Copy link
Author

diego-lipinski-de-castro commented Oct 19, 2020

That was the problem, sorry for the useless issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants