sannajammeh / trpc-swr

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

useSWR opts type is incorrect #50

Closed grefrit closed 10 months ago

grefrit commented 10 months ago
image

it seems that useSWR hook is missing typing for SWR options.

If you try to remove {} here, it works normally. https://github.com/sannajammeh/trpc-swr/blob/bb74ec59a881f97aeb9eca426f6f7d46c2e49875/packages/client/src/createSWRProxyHooks.tsx#L29

sannajammeh commented 10 months ago

Looking into this!

sannajammeh commented 10 months ago

Should be fixed now! Next v2.0.1 is building.