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

Let make() return a cached dependency if resolutionCacheDepth > 0 #12

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

stevegrunwell
Copy link
Contributor

This extends #11, moving the "are we currently in a caching context" check to the front of the method.

This has the benefit of making sure that we're not needlessly resolving nested dependencies, ensuring that the instance we inject into dependencies is the same as what we have in the cache.

This extends #11, moving the "are we currently in a caching context" check to the front of the method.

This has the benefit of making sure that we're not needlessly resolving nested dependencies, ensuring that the instance we inject into dependencies is the same as what we have in the cache.
@stevegrunwell stevegrunwell added the bug Something isn't working label Mar 21, 2022
@stevegrunwell stevegrunwell added this to the Version 1.0.0 milestone Mar 21, 2022
@stevegrunwell stevegrunwell requested a review from lkwdwrd March 21, 2022 21:30
@lkwdwrd lkwdwrd merged commit 00b60d1 into develop Mar 22, 2022
@lkwdwrd lkwdwrd deleted the fix/overwritten-nested-dependencies branch March 22, 2022 13:59
@stevegrunwell stevegrunwell mentioned this pull request Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants