We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bae5ffe + 4307139 commit cf2f5abCopy full SHA for cf2f5ab
1 file changed
packages/core/src/hooks/useAsync/useAsync.demo.tsx
@@ -21,14 +21,14 @@ const Demo = () => {
21
Next
22
</button>
23
24
- {getPokemonQuery.data && !getPokemonQuery.isLoading && (
+ {getPokemonQuery.isLoading && (
25
<div className='flex animate-pulse flex-col gap-2'>
26
<div className='h-7 w-40 rounded-md bg-neutral-600' />
27
<div className='size-96 rounded-md bg-neutral-600' />
28
</div>
29
)}
30
31
- {getPokemonQuery.data && (
+ {getPokemonQuery.data && !getPokemonQuery.isLoading && (
32
<div className='flex flex-col gap-2'>
33
<p>
34
Name: <code>{getPokemonQuery.data.name}</code>
0 commit comments