We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Below code will never call disposingFunction as it is first set to null then check if not null then function call.
void resetLazySingleton<T>({...}) { ... instanceFactory.instance = null; ... if (instanceFactory.instance != null) { disposingFunction?.call(instanceFactory.instance as T); } }
The text was updated successfully, but these errors were encountered:
Yes, I noted the same, it need to check first the if test, and then set to null
Sorry, something went wrong.
fixed in V4.0.4
No branches or pull requests
Below code will never call disposingFunction as it is first set to null then check if not null then function call.
The text was updated successfully, but these errors were encountered: