Closed sannajammeh closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
trpc-swr | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 16, 2023 0:07am |
Latest commit: 35212265880deadbd33b6c2a4b99c13012ca5c95
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
New package structure
Moves all packages to the new package structure:
trpc-swr
->@trpc-swr/client
trpc-swr/infinite
->@trpc-swr/infinite
trpc-swr/next
->@trpc-swr/next
trpc-swr/ssg
->@trpc-swr/ssg
Unit tests
<procedure>.useSWR()
<procedure>.useSWRMutation()
SWR.mutate()
with getKeyinfinite.<procedure>.use()
infinite.<procedure>.useCursor()
ssg.<procedure>.fetch()
ssg.dehydrate()
unstable_serialize
equality comparison withSWR.unstable_serialize
E2E Tests
Aims to fully E2E test all methods. Tests needed for PR to be merged:
<procedure>.useSWR()
<procedure>.useSWRMutation()
SWRResponse.mutate()
SWR.mutate()
with getKey<procedure>.useSWRMutation()
with optimisticDataper component
fallback