How to Properly Configure Types Proxy for Optimal Performance? or What Are the Best Practices to Conf

18 Replies, 1820 Views

Lol it’s not just you. I spent a whole weekend on this.

Biggest "aha" moment: Make sure your proxy types are *assignable* to the original. If not, things explode in weird ways.

Also, `@types/proxy-helper` is a lifesaver. Not perfect, but better than nothing.

Speed tip: Cache your proxies if you can. Recreating them on the fly kills perf.

Messages In This Thread



Users browsing this thread: 1 Guest(s)