Giter Site home page Giter Site logo

Comments (5)

davidliu avatar davidliu commented on June 23, 2024

I'm guessing you're using the multibinds ViewModelFactory pattern, where you've got an omni factory made at the @Singleton level that can create all the other ones. Don't do that. The omni-factory, since it lives at the @Singleton level, requires all the dependencies to be filled at that level, and it can't get the @AuthScope dependencies.

Instead of using the multibind factory stuff, just directly get the factory of the vm you need and use that.

from inflationinject.

davidliu avatar davidliu commented on June 23, 2024

Also, this issue should be closed, as it's not really related to AssistedInject at all, just a bog-standard Dagger question.

from inflationinject.

Suet avatar Suet commented on June 23, 2024

Hello.
As I mentioned at the very beginnig "Everything compiles and works fine if I don't use @AssistedInject, @AssistedInject.Factory and ViewModelAssistedFactoriesModule."

from inflationinject.

davidliu avatar davidliu commented on June 23, 2024

Yes, but you wanted to use @AssistedInject right? So I don't see why that's relevant.

from inflationinject.

Suet avatar Suet commented on June 23, 2024

That's exactly what my question was about. I wondered if the code working fine without assisted inject library should still work if I use it and amend a code accordingly. As far as I see there is not much changed in a code. But something breaks and it stops to compile.

from inflationinject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.