We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d9858 commit f5d7a67Copy full SHA for f5d7a67
1 file changed
index.ts
@@ -29,7 +29,7 @@ export default function memoize<A extends unknown[], R extends unknown, T extend
29
if (cache.has(id)) return cache.get(id)
30
const result = fn.apply(this, args)
31
if (result instanceof Promise) {
32
- result.catch((error) => {
+ result.catch(error => {
33
cache.delete(id)
34
throw error
35
})
0 commit comments