Skip to content

Commit 595625e

Browse files
authored
Merge pull request #5213 from preactjs/agent/remove-unused-memo-factory
2 parents 56a649f + 8eadf19 commit 595625e

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

hooks/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ export function useMemo(factory, args) {
351351
if (argsChanged(state._args, args)) {
352352
state._value = factory();
353353
state._args = args;
354-
state._factory = factory;
355354
}
356355

357356
return state._value;

hooks/src/internal.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export interface MemoHookState<T = unknown> extends BaseHookState {
8787
_pendingValue?: T;
8888
_args?: unknown[];
8989
_pendingArgs?: unknown[];
90-
_factory?: () => T;
9190
}
9291

9392
export interface ReducerHookState<

mangle.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"$_nextValue": "__N",
3737
"$_original": "__v",
3838
"$_args": "__H",
39-
"$_factory": "__h",
4039
"$_depth": "__b",
4140
"$_mask": "__m",
4241
"$_detachOnNextRender": "__b",

0 commit comments

Comments
 (0)