theKashey / proxyequal

There is a bit more smart way to compare things, than a shallow equal.
MIT License
72 stars 7 forks source link

[proposal] rest property #13

Closed dai-shi closed 5 years ago

dai-shi commented 5 years ago

This is just a proposal. I didn't spend time to dive in deep.

This is the code I used in https://github.com/dai-shi/react-hooks-easy-redux/issues/8#issuecomment-474783286

The test is failing.

theKashey commented 5 years ago

Proposal accepted, but I would write some tests before releasing it - it's more about properly mimicking babel behaviour. For example - Object.keys might be not enough. Not sure - tests will show.

theKashey commented 5 years ago

👷 still on it 👷

theKashey commented 5 years ago

There were issues with your proposal, more about defineProperty is not working on Proxies.

I've added two new APIs