Skip to content

feat: lazy creating reducer (#24)#33

Open
geekact wants to merge 1 commit intomasterfrom
lazy-reducer
Open

feat: lazy creating reducer (#24)#33
geekact wants to merge 1 commit intomasterfrom
lazy-reducer

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
@geekact geekact mentioned this pull request Dec 22, 2022
7 tasks
@geekact geekact force-pushed the master branch 4 times, most recently from 0149adb to 873a990 Compare March 3, 2025 04:47
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