about summary refs log tree commit diff
path: root/src/lib/react-query.ts
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-09-15 22:02:44 +0530
committerGitHub <noreply@github.com>2023-09-15 09:32:44 -0700
commit188d4893f9f209aae10294bf72fe9f23ed399c28 (patch)
treeb87f291ff3f796d51578fd9f2e68e3311c8e74c2 /src/lib/react-query.ts
parent84b7edd9db4bb08f03b5c882da5542fc29a72232 (diff)
downloadvoidsky-188d4893f9f209aae10294bf72fe9f23ed399c28.tar.zst
add React Query and hook up to existing functionality (#1358)
* add React Query and hook up to existing functionality

* wire in remote data, add error message

* remove hard-coded feeds

* oops fix logic

* add loading state

* fix loading on mobile

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/lib/react-query.ts')
-rw-r--r--src/lib/react-query.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/react-query.ts b/src/lib/react-query.ts
new file mode 100644
index 000000000..2a8f1d759
--- /dev/null
+++ b/src/lib/react-query.ts
@@ -0,0 +1,3 @@
+import {QueryClient} from '@tanstack/react-query'
+
+export const queryClient = new QueryClient()