Skip to content

Commit cf2f5ab

Browse files
authored
Merge pull request #446 from forckes/fix/useAync-demo
fix/useAync-demo 🧊 Fixed useAsync demo skeleton not proper rendering
2 parents bae5ffe + 4307139 commit cf2f5ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/hooks/useAsync/useAsync.demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ const Demo = () => {
2121
Next
2222
</button>
2323

24-
{getPokemonQuery.data && !getPokemonQuery.isLoading && (
24+
{getPokemonQuery.isLoading && (
2525
<div className='flex animate-pulse flex-col gap-2'>
2626
<div className='h-7 w-40 rounded-md bg-neutral-600' />
2727
<div className='size-96 rounded-md bg-neutral-600' />
2828
</div>
2929
)}
3030

31-
{getPokemonQuery.data && (
31+
{getPokemonQuery.data && !getPokemonQuery.isLoading && (
3232
<div className='flex flex-col gap-2'>
3333
<p>
3434
Name: <code>{getPokemonQuery.data.name}</code>

0 commit comments

Comments
 (0)