Skip to content

Reinstantiate the Provider #12

@wladimirgrf

Description

@wladimirgrf

The implementation

In the project, I use the tsyringe lib to "dynamically" choose the provider instance.
So, it is possible to change the type of implementation at run time.

The blocker

Currently, tsyringe does not allow the removal of a specific instance.
Just general cleaning of objects. Which is not a very good approach for now.

The solution

I opened a Pull Request for the library with the feature for unregistering based on the key.
It is still in the queue for approval by the team.
Feature - Unregister a token #190

I will be waiting for this PR to complete this proof of concept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions