Skip to content

Commit

Permalink
test optimistic
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Sep 3, 2022
1 parent ea171e5 commit d22e4d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/next/pages/optimistic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Page() {
const hello = useHelloData()

// this is for you, gaearon
const { data, error, loading, update, refetch, aborter } = hello
const { data, error, loading, update, refetch, aborter, optimistic } = hello

const onRefreshClick = useCallback(() => {
refetch()
Expand Down Expand Up @@ -60,6 +60,9 @@ export default function Page() {
? "Aborted"
: JSON.stringify(error)}
</div>
<div>
{optimistic && "Optimistic"}
</div>
<div>
{loading && "Loading..."}
</div>
Expand Down

0 comments on commit d22e4d5

Please sign in to comment.