oscartbeaumont / rspc

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

Pass window to ctx fn by ref #225

Closed Brendonovich closed 9 months ago

Brendonovich commented 9 months ago

This way it's up to the user to clone the Window which is a bit cheaper. It doesn't introduce lifetime issues as TCtxFn is forced to have a static return type.