needle
needle copied to clipboard
Add a support of a weak instance with the identity.
Sometimes, we want to choose whether to share same ViewModel among different instances of View as long as the ViewModel's instance has been referenced somewhere. Like that, it is better to be able to choose without adding another definition for some situations I suppose.
We can use weak constructor I just added in this PR for such purpose.