help wanted
Repository metrics
- Stars
- (501 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
From Twitter: https://twitter.com/dai_shi/status/1145316559461556225
Just revisited: https://github.com/GoogleChrome/proxy-polyfill and https://github.com/reduxjs/react-redux/issues/1179 Two caveats:
- It doesn't support
hasandownKeyshandler. - It doesn't detect accessing new properties. In other words, it would work only if state is only accessed by
getwith existing properties.
Suppose state = { counter1: 0 }, with proxy-polyfill:
'counter1' in statecan't be trapped.state.counter2can't be trapped.