Renamed query hooks. Fixed conversion bugs.
This commit is contained in:
@@ -3,7 +3,7 @@ import { create } from 'zustand';
|
||||
const store = create(() => ({}));
|
||||
|
||||
const useGlobalState = (key: string, value?: any) => {
|
||||
if (value !== undefined && !store.getState()[key]) {
|
||||
if (value !== undefined && store.getState()[key] === undefined) {
|
||||
store.setState({ [key]: value });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user