You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ const Component = () => {
69
69
70
70
## Reactive Queries
71
71
72
-
The `useQuery` hook allows you to access the results of a watched query. Queries will automatically update when a dependant table is updated unless you set the `runQueryOnce` flag. You are also able to use a compilable query (e.g. [Kysely queries](https://github.com/powersync-ja/powersync-js/tree/main/packages/kysely-driver)) as a query argument in place of a SQL statement string.
72
+
The `useQuery` hook allows you to access the results of a watched query. Queries will automatically update when a dependent table is updated unless you set the `runQueryOnce` flag. You are also able to use a compilable query (e.g. [Kysely queries](https://github.com/powersync-ja/powersync-js/tree/main/packages/kysely-driver)) as a query argument in place of a SQL statement string.
73
73
74
74
```JSX
75
75
// TodoListDisplay.jsx
@@ -305,7 +305,7 @@ function MyWidget() {
305
305
// - It will rerender on any state change of the watched query. E.g. if isFetching alternates
306
306
// If MyWatchedWidget is memoized
307
307
// - It will re-render if the data reference changes. By default the data reference changes after any
308
-
// change to the query's dependant tables. This can be optimized by using Incremental queries.
308
+
// change to the query's dependent tables. This can be optimized by using Incremental queries.
0 commit comments