-
-
Notifications
You must be signed in to change notification settings - Fork 153
ResetLazySingleton not working #108
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
Comments
Which version of get_it are you using? some remarks:
|
i'm using latest get_it |
Because it's make me confusing
But give me error like this
error in try it's tell me is already register but when i'm trying to reset it's give me error no object register with type User ? |
Just think a moment what a LazySingleton is compared to a Singleton? It's instance is only created when you first access it. For what you want I would recommend you use the new scope features. before you create a new user object you call |
I'm try to register class User as LazySingletone like this
but when i'm try to reset previous data User with resetLazySingletone i got this error :
The text was updated successfully, but these errors were encountered: