Stores: cleanup

This commit is contained in:
Enrico Ros
2024-10-28 11:02:10 -07:00
parent 8524473488
commit f02409c5a9
6 changed files with 5 additions and 121 deletions
@@ -1,5 +1,5 @@
import * as React from 'react';
import { create } from 'zustand';
import { create as createStoreForReactiveGlobals } from 'zustand';
import { useQuery } from '@tanstack/react-query';
import { Box, Typography } from '@mui/joy';
@@ -39,7 +39,7 @@ interface MermaidAPIStore {
loadingError: string | null,
}
const useMermaidStore = create<MermaidAPIStore>()(
const useMermaidStore = createStoreForReactiveGlobals<MermaidAPIStore>()(
() => ({
mermaidAPI: null,
loadingError: null,