summaryrefslogtreecommitdiff
path: root/front/src/App.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-09-17 21:45:18 +0700
committerpolwex <polwex@sortug.com>2025-09-17 21:45:18 +0700
commit985fa2f7c99832cdf3c3351d2273c8fd05402b78 (patch)
treebc727486a89ad05e588754f8de8b1096400a3d31 /front/src/App.tsx
parentf0df4c7297a05bd592d8717b8997284c80fd0500 (diff)
basic comms working
Diffstat (limited to 'front/src/App.tsx')
-rw-r--r--front/src/App.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/front/src/App.tsx b/front/src/App.tsx
index f921bbf..415cb66 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -14,7 +14,10 @@ const queryClient = new QueryClient();
function App() {
const [loading, setLoading] = useState(true);
console.log("NOSTRILL INIT");
- const { init, modal } = useLocalState();
+ const { init, modal } = useLocalState((s) => ({
+ init: s.init,
+ modal: s.modal,
+ }));
useEffect(() => {
init().then((_res: any) => {
setLoading(false);