Skip to content

Commit

Permalink
test: disable memoization for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Sep 20, 2024
1 parent c3f3a19 commit 6f713cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function createMemoizer<TFunction extends (...args: never[]) => unknown>(
const hashed = hashInput(...args)
const serializedHash = JSON.stringify(hashed)
const cached = cache.get(path)
if (serializedHash === cached?.serializedHash) return cached.result
// if (serializedHash === cached?.serializedHash) return cached.result

const result = fn(...args) as ReturnType<TFunction>
cache.set(path, {serializedHash, result})
Expand Down

0 comments on commit 6f713cf

Please sign in to comment.