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

fix: fix useClass onInstantiation not running #28

Merged

Conversation

bailnl
Copy link
Contributor

@bailnl bailnl commented Jul 6, 2024

修复 useClass 时参数 onInstantiation 未能正常运行,原因是 IdleValue 时已经构建实例,导致 IdleValue 内部的 didRun 为 true ,所以需要把 onInstantiation 的执行时机移到 _resolveClassImpl 中

@bailnl bailnl force-pushed the fix/use-class-on-instantiation-not-run branch from f1d606d to 854b72c Compare July 6, 2024 11:52
Copy link
Owner

@wzhudev wzhudev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution.

@wzhudev wzhudev merged commit c80535d into wzhudev:main Jul 6, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants