alternative of Proxy
See original GitHub issuehi, 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:
- add a condition
setUseProxies
to disable using Proxy. - have a backup
Object.defineProperty
implementation, for this scenario, only support limit recording method.- record traps
get
andset
getOwnPropertyDescriptor
andownKeys
are rarely used and also reasonable if not record them.has
anddeleteProperty
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 ofdelete obj.a
- record traps
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:
- Created a year ago
- Comments:18 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
got it, thanks