Open
Description
From Twitter: https://twitter.com/dai_shi/status/1145316559461556225
Just revisited: https://github.com/GoogleChrome/proxy-polyfill and reduxjs/react-redux#1179 Two caveats:
- It doesn't support
has
andownKeys
handler. - It doesn't detect accessing new properties. In other words, it would work only if state is only accessed by
get
with existing properties.
Suppose state = { counter1: 0 }
, with proxy-polyfill:
'counter1' in state
can't be trapped.state.counter2
can't be trapped.