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

Change the lifetime of RegisterInstance to Singleton. #171

Merged
merged 1 commit into from Apr 18, 2021

Conversation

hadashiA
Copy link
Owner

Refs: #169

There is a problem that when a registered instance of RegisterInstance is resolved by a child, and the child container is destroyed, the parent instance will also be disposed.

The easiest way to fix this behavior is to change to Singleton.

@vercel
Copy link

vercel bot commented Mar 29, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hadashia/vcontainer/JDYQnorvnAx5jSDjHhRTDV7H2NXA
✅ Preview: https://vcontainer-git-ku-register-instance-as-singleton-hadashia.vercel.app

@hadashiA hadashiA merged commit 4ec135b into master Apr 18, 2021
@hadashiA hadashiA deleted the ku/register-instance-as-singleton branch April 18, 2021 08:24
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

Successfully merging this pull request may close these issues.

None yet

1 participant