Skip to content

class that bind with singleton in core shared module should not recreate #794

Closed
@fullflash

Description

@fullflash

We need as described in docs.

class AppModule extends Module {
@OverRide
List get imports => [CoreModule()];

and inside core module injecting Dio instance as in examples

but when getting this httclient via Modular.get() the dio instance class construction called again.

so what is should we do in order to get a real singleton binding ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    newNew issue request attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions