oscartbeaumont / rspc

A framework for building typesafe web backends in Rust
https://rspc.dev
MIT License
1.1k stars 50 forks source link

Move JS client to generator functions #246

Open oscartbeaumont opened 7 months ago

oscartbeaumont commented 7 months ago

If this is even possible it should hopefully reduce bundle size a bit and would be easier to understand than the custom Oberservable implementation.

ken0x0a commented 7 months ago

TypeScript doesn't work well with generators...

oscartbeaumont commented 3 months ago

Interesting. I don't have much experience but they look alright just doing some quick tests.

They are more of an implement detail anyway, most people won't touch the link API (and generally if they do they have to do typecasting anyway).