sannajammeh / trpc-swr

tRPC-ified SWR hooks
https://trpc-swr.vercel.app
MIT License
209 stars 5 forks source link

[Feature] - V10 & SWR #16

Closed sannajammeh closed 1 year ago

sannajammeh commented 1 year ago

With TRPC v10 being built having proxy based SWR hooks for it would be fantastic. Switching between SWR & React Query isn't so neat.

I am willing to fork and start this work if you'd like any collaborators :)

sachinraja commented 1 year ago

I'm busy working on v10 core right now but I was going to get around to this before the major release. I'd be happy to review a PR for it though!

sannajammeh commented 1 year ago

@sachinraja I built a working prototype with only the useSWR hook in a local codebase. Before I start a PR I'd like to create an RFC for some features which will allow us to take full advantage of SWR (2.0 beta) and the vanilla tRPC proxies. Where would you like it to be placed?

sachinraja commented 1 year ago

A separate issue would be best for an RFC, thanks!

sannajammeh commented 1 year ago

Closing this as we have an RFC