dai-shi / proxy-memoize

Intuitive magical memoization library with Proxy and WeakMap
http://proxy-memoize.js.org/
MIT License
719 stars 16 forks source link

What is the difference with memoize-state? #65

Closed valerii15298 closed 1 year ago

valerii15298 commented 1 year ago

What is the difference with memoize-state?

dai-shi commented 1 year ago

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

valerii15298 commented 1 year ago

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.

dai-shi commented 1 year ago

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.

valerii15298 commented 1 year ago

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