Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
DCKT committed Feb 21, 2024
1 parent 80f0eb2 commit 3f5b78e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/src/ReactSuspense.res
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Page = {
}
@react.component
let make = () => {
let {data, isFetching} = useSuspenseQuery({
let {data} = useSuspenseQuery({
queryKey: ["repoData"],
queryFn: _ => Ky.get("https://api.github.com/repos/tannerlinsley/react-query").json(),
})
Expand All @@ -23,7 +23,6 @@ module Page = {
<strong> {`👀 ${data.subscribers_count->Int.toString}`->React.string} </strong>
<strong> {`✨ ${data.stargazers_count->Int.toString}`->React.string} </strong>
<strong> {`🍴 ${data.forks_count->Int.toString}`->React.string} </strong>
<div> {isFetching ? "Updating..."->React.string : React.null} </div>
</div>
}
}
Expand Down

0 comments on commit 3f5b78e

Please sign in to comment.