reactive-react-redux
reactive-react-redux copied to clipboard
Discussions about proxy-polyfill
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
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.
As in https://github.com/dai-shi/react-tracked/issues/6, we need somebody to try out reactive-react-redux with polyfill.