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

feat: lazy creating reducer (#24) #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: lazy creating reducer (#24) #33

wants to merge 1 commit into from

Conversation

geekact
Copy link
Member

@geekact geekact commented Dec 16, 2022

Fixes #24

const { consumer, onComplete } = this.lazyKeys[key]!;
delete this.lazyKeys[key];
this.appendReducer(key, consumer);
this.onInitialized(onComplete);

Check failure

Code scanning / CodeQL

Wrong use of 'this' for static method

Access to instance method [onInitialized](1) from static method [lazyLoad](2) is not possible through `this`.
@geekact geekact force-pushed the lazy-reducer branch 2 times, most recently from 9f6d742 to eb608c9 Compare December 19, 2022 02:45
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.

[New Feature]是不是可以增加一个即用即创建的功能
1 participant