diff --git a/client-sdks/frameworks/react.mdx b/client-sdks/frameworks/react.mdx index cd98ccee..ff427ba9 100644 --- a/client-sdks/frameworks/react.mdx +++ b/client-sdks/frameworks/react.mdx @@ -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.