jotaijs / jotai-trpc

MIT License
126 stars 7 forks source link

Does not seem to work with tRPC v11 #24

Open busybox11 opened 3 months ago

busybox11 commented 3 months ago

When using this lib with tRPC v11, the returned get callback inside atomWithQuery has any type definition, instead of the expected one. Can't reproduce in the example repo.

image
dai-shi commented 3 months ago

Thanks for reporting. We need someone to help this. cc @sachinraja

lukeramsden commented 3 months ago

Bit of investigation

Some imports deprecated and some removed.

Screenshot 2024-08-02 at 08 59 52

createTRPCProxyClient becoming createTRPCClient is simply a rename

Screenshot 2024-08-02 at 09 01 36

ProcedureArgs deleted

Lots of exports renamed for some reason? The migration changelog mentions general work to generics and simplification of types

Screenshot 2024-08-02 at 09 05 21

I've got createTRPCJotai.ts ported and compiling and will open a draft PR.