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
No register type error #118
Comments
looks good to me, what is the constructor of XUseCase doing? can you show me the code where you get the exception? |
is to simple usecase |
and was working fine I have at least 15 types registered the only thing new is I update to |
What should this here do |
sorry thats my get_it instance :D |
yeah but you call it while passing to the constructor: |
this |
yeah, so you are expecting that the |
no, the repo dont have any instance of sl or the usecase |
an yesh Im specting sl return a Xrpository tha tis also registered |
also tht repository dependecy is registered too. was working just fine until yesterday that I update to |
I recommeds always use sl() which is better to read. Now, that seems pretty weird that it only happens on iOS because get_it doesn't use any system functions. could it be that it's a timing issue? that somehow on iOS a part of code gets executed that tries to access XUsecase before it it registered? |
I dont think is the timing cuz all those register are happening before the runApp() call so is weird indeed and more wierd that os happening only on ios
|
would you mind joining me in a zoom call that I can look at your project? |
sure! |
@escamoteur I clean flutter reset/invalidate cache and now is working Thanks! |
I get this error
get it dont find the
XUsCase
but is already registeredsl.registerLazySingleton<XUseCase >(() => XUseCase (sl()));
The text was updated successfully, but these errors were encountered: