Skip to content

How to inject HttpClient when using gen code from within a Library #2420

@michaelwoelk

Description

@michaelwoelk

Hi!

I like to keep my repos organized, so I split all API SDKs into separate repos. For example, I might have my-api-foo and my-api-bar, each containing the Orval-generated code. When I use these in my main project, how can I pass an HTTP client without needing to provide it for every single hook?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions