Skip to content

Discussions about proxy-polyfillΒ #30

Open
@dai-shi

Description

@dai-shi

From Twitter: https://twitter.com/dai_shi/status/1145316559461556225

Just revisited: https://github.com/GoogleChrome/proxy-polyfill and reduxjs/react-redux#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions