You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be useful to have a callback parameter in memoize that would define whether we want to cache it or not.
The callback could be to define inclusion of exclusion of the cache, I'm agnostic on it (probably would make sense to have it exclude, since we want to cache by default?)
I could make the PR if interested, in the meantime if someone is looking for an user-implementation, here's the one that was enough for my need.
Hello, thanks for the lib.
It'd be useful to have a callback parameter in
memoize
that would define whether we want to cache it or not.The callback could be to define inclusion of exclusion of the cache, I'm agnostic on it (probably would make sense to have it exclude, since we want to cache by default?)
I could make the PR if interested, in the meantime if someone is looking for an user-implementation, here's the one that was enough for my need.
The text was updated successfully, but these errors were encountered: