Skip to content

Commit

Permalink
make memo() more self-consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mleibman-db committed Feb 22, 2025
1 parent 0769660 commit 3620a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function memo<TDeps extends readonly any[], TDepArgs, TResult>(
let resultTime: number
if (opts.key && opts.debug) resultTime = Date.now()

result = fn(...newDeps)
result = fn.apply(this, newDeps)
opts?.onChange?.(result)

if (opts.key && opts.debug) {
Expand Down

0 comments on commit 3620a00

Please sign in to comment.