-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
help wantedExtra attention is neededExtra attention is needed
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.
fuleinist
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed