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

proposal: Add factory provide mode #36

Closed
leaxoy opened this issue Jun 11, 2023 · 1 comment
Closed

proposal: Add factory provide mode #36

leaxoy opened this issue Jun 11, 2023 · 1 comment

Comments

@leaxoy
Copy link

leaxoy commented Jun 11, 2023

First, this is a amazing project.

But now, both Provide and ProvideValue only support singleton likely mode, for Provide which only create value when first invoked. In sometimes, it's useful to create a new instance whenever it invoked.

@samber samber mentioned this issue Oct 30, 2023
51 tasks
@samber
Copy link
Owner

samber commented Oct 30, 2023

Hi @leaxoy,

It will be added to do@v2 🎉 -> #45

See "Transient services".

@samber samber closed this as completed Dec 6, 2023
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

2 participants