You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the unregister method, there is a parameter ignoreReferenceCount which is defined but not used in the implementation.
Current implementation:
if (factoryToRemove._referenceCount >0) {
factoryToRemove._referenceCount--;
return;
}
The ignoreReferenceCount parameter should be used to control whether to ignore the reference count when unregistering. I suggest modifying the code to:
if (!ignoreReferenceCount && factoryToRemove._referenceCount >0) {
factoryToRemove._referenceCount--;
return;
}
This would make the parameter work as expected:
When ignoreReferenceCount = false (default): keep current behavior
When ignoreReferenceCount = true: it will ignore the reference count and unregister the object
The text was updated successfully, but these errors were encountered:
In the
unregister
method, there is a parameterignoreReferenceCount
which is defined but not used in the implementation.Current implementation:
The
ignoreReferenceCount
parameter should be used to control whether to ignore the reference count when unregistering. I suggest modifying the code to:This would make the parameter work as expected:
ignoreReferenceCount = false
(default): keep current behaviorignoreReferenceCount = true
: it will ignore the reference count and unregister the objectThe text was updated successfully, but these errors were encountered: