question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alternative of Proxy

See original GitHub issue

hi, I am trying to use lib proxy-memoize in our website to replace reselect, but our website serves customers, so need be compatible with as many browsers as possible, but proxy-polyfill can’t work with this lib, since the polyfill only support a limited scope traps, not include has, deleteProperty and so on.

I also take a look of immerjs to check how it works in non-proxy environment, it use Object.defineProperty instead, so what I think is:

  1. add a condition setUseProxies to disable using Proxy.
  2. have a backup Object.defineProperty implementation, for this scenario, only support limit recording method.
    • record traps get and set
    • getOwnPropertyDescriptor and ownKeys are rarely used and also reasonable if not record them.
    • has and deleteProperty are big problems, only hope the developers notice to don’t use them.
      • obj['a'] instead of 'a' in obj
      • const { ...newObj, a } = obj instead of delete obj.a

then I think proxy-memoize can have a widely usage scenarios, hope can as a default selectorCreator be putted in the redux-toolkit one day ^_^

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dai-shicommented, Jun 21, 2022

https://github.com/GoogleChrome/proxy-polyfill/blob/9dc3aa4ac356308e337f85bb9e671438b4da0ece/src/proxy.js#L100-L106

Okay, this is very unfortunate. I think polyfill shouldn’t do this, but understandable.

0reactions
hayondcommented, Jun 21, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 10 Proxy-Sale Alternatives 2022 - G2
Top 10 Alternatives to Proxy-Sale · Bright Data · Apify · psiphon · SOAX · FoxyProxy · Oxylabs · Infatica Global Proxy Network...
Read more >
Proxy Alternatives: Use These Instead of Proxies
3 Alternatives to Proxies · VPNs: Safe & User-Friendly · Tor: Surf Safely · Smart DNS: Streaming Alternative · Overview: Proxy Alternatives.
Read more >
Proxy Server Alternatives and Similar Sites / Apps | AlternativeTo
The best Proxy Server alternatives are Tor Browser, Tor and Snowflake Tor. Our crowd-sourced lists contains more than 10 apps similar to ...
Read more >
What are some alternatives to proxy servers? - Quora
There are many but WebOProxy is one of the best that you can try. It is a Tor based online proxy to bypass...
Read more >
Alternatives to Proxy Servers - Small Business - Chron.com
Alternatives to Proxy Servers · Proxy Server Basics and Why They Often Are Denied · Using an Anonymizer · Virtual Private Networks (VPNs)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found