Skip to content

Commit

Permalink
Update README.md (#1779)
Browse files Browse the repository at this point in the history
Doc typo missing api update `isUpToDate` to `isLoading`
  • Loading branch information
LeonAlvarez authored Oct 1, 2024
1 parent 174dece commit d938a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Add `useShape` to a component
import { useShape } from "@electric-sql/react"

export default function MyComponent () {
const { isUpToDate, data } = useShape({
const { isLoading, data } = useShape({
url: "http://my-api.com/shape/foo",
})

if (!isUpToDate) {
if (isLoading) {
return <div>loading</div>
}

Expand Down

0 comments on commit d938a2f

Please sign in to comment.