Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Dec 2, 2024
1 parent b716a7b commit 1a20e4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/r-store/src/shared/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const catchError = <T>(cb: () => T, instance: Controller) => {
if (!instance._isActive) return;

if (__DEV__) {
instance._devRunCount = instance._devRunCount || 0;

instance._devRunCount++;
}

Expand Down Expand Up @@ -78,7 +80,7 @@ export class Controller<T = any> {

_devResult: any;

_devRunCount = 0;
_devRunCount: number;

// make the state change and component update
_updateCount = 0;
Expand Down

0 comments on commit 1a20e4b

Please sign in to comment.