Skip to content

2.0.6-beta.0

Compare
Choose a tag to compare
@liaoliao666 liaoliao666 released this 13 Oct 07:36
· 58 commits to main since this release

Changes

feat: replace suspense query with option suspense
docs: remove suspense query

BREAKING CHANGES

Removed createSuspenseQuery and createSuspenseInfiniteQuery and use option suspense instead.

Before:

const useUser = createSuspenseQuery<Response>({
  // ...
})

After

const useUser = createQuery<Response>({
  // ...
})

const { data, error } = useUser({ suspense: true }) // data: Response, error: null

See discussion #38