reactive-react-redux icon indicating copy to clipboard operation
reactive-react-redux copied to clipboard

Discussions about proxy-polyfill

Open dai-shi opened this issue 5 years ago • 1 comments

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:

  1. It doesn't support has and ownKeys handler.
  2. 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:

  1. 'counter1' in state can't be trapped.
  2. state.counter2 can't be trapped.

dai-shi avatar Jun 30 '19 21:06 dai-shi

As in https://github.com/dai-shi/react-tracked/issues/6, we need somebody to try out reactive-react-redux with polyfill.

dai-shi avatar Dec 24 '19 01:12 dai-shi