dai-shi / proxy-memoize

Intuitive magical memoization library with Proxy and WeakMap

Home Page:http://proxy-memoize.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the difference with memoize-state?

valerii15298 opened this issue · comments

What is the difference with memoize-state?

Thanks for asking! What kind of answer are you expecting?

memoize-state just seems very similar. So I was just curious what is the difference. I see your library has more docs and examples, which means easier to use.

Their goals are the same.
memoize-state is based on proxyequal.
proxy-memoize is based on proxy-compare.

I implemented proxy-compare, after learning @theKashey's proxyequal as a prior art, with lots of his help.
There are some differences like proxy-compare doesn't support Map intentionally. In short, proxy-compare and proxy-memoize are more modern.

Thanks for explanation.
I think this can be closed now😆🙂