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
The response from `useQuery` includes the `isLoading` and `isFetching` properties, which indicate the current state of data retrieval. This can be used to show loading spinners or conditional widgets.
88
+
89
+
```JSX
90
+
// TodoListDisplay.jsx
91
+
import { useQuery } from"@powersync/react";
92
+
93
+
exportconstTodoListsDisplayDemo= () => {
94
+
const { data:todoLists, isLoading, isFetching } =useQuery('SELECT * FROM lists');
0 commit comments