Giter VIP home page Giter VIP logo

Comments (4)

alestiago avatar alestiago commented on May 25, 2024

Hi @ZhongGuanbin ! Thanks for submitting an issue. I think the solution you're looking for might be in the Dart Frog documentation about Dependeny Injection using a Provider.

Let me know if this helps 💙

from dart_frog.

ZhongGuanbin avatar ZhongGuanbin commented on May 25, 2024

Hi @ZhongGuanbin ! Thanks for submitting an issue. I think the solution you're looking for might be in the Dart Frog documentation about Dependeny Injection using a Provider.

Let me know if this helps 💙

Hi @alestiago ! Thank you very much for your reply! I now forward requests to the root route through internal forwarding and implement dependency injection in the middleware of the root route. I feel that my usage is still a bit problematic because provider creates the provided value only when it is accessed, so I must use context. read() in the routing of the root context. I have an idea now to create Middleware in the routing, but due to other more urgent tasks, I have not yet verified it. I have just been exposed to network programming, so my ideas may be a bit absurd. I will update this issue after verification. Thank you again for your reply!

from dart_frog.

alestiago avatar alestiago commented on May 25, 2024

I'm glad it helped! I am closing this for now. If anything comes up, don't hesitate on telling! 💙

from dart_frog.

ZhongGuanbin avatar ZhongGuanbin commented on May 25, 2024

from dart_frog.

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.