Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client-sdks/frameworks/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `@powersync/react` package provides React hooks for use with the [JavaScript

The main hooks available are:

- `useQuery`: This allows you to access the results of a watched query. The response includes `isLoading`, `isFetching` and `error` properties.
- `useQuery`: This allows you to access the results of a watched query. The response includes `isLoading`, `isFetching`, `fetchReason` and `error` properties. While `isFetching` is true, `fetchReason` is `'initial'`, `'refresh'`, `'tables-changed'` or `'settings-changed'`. `'settings-changed'` means the SQL, parameters or options changed, and `data` still holds the previous query's rows until the updated query returns its first result.
- `useStatus`: Access the PowerSync connectivity status. This can be used to update the UI based on whether the client is connected or not.
- `useSuspenseQuery`: This hook also allows you to access the results of a watched query, but its loading and fetching states are handled through [Suspense](https://react.dev/reference/react/Suspense). It automatically converts certain loading/fetching states into Suspense signals, triggering Suspense boundaries in parent components.

Expand Down
Loading