Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstantiate the Provider #12

Open
wladimirgrf opened this issue Jan 27, 2024 · 0 comments
Open

Reinstantiate the Provider #12

wladimirgrf opened this issue Jan 27, 2024 · 0 comments

Comments

@wladimirgrf
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant