umami/src/store/cache.ts

10 lines
183 B
TypeScript
Raw Normal View History

2023-10-08 03:55:14 +02:00
import { create } from 'zustand';
const store = create(() => ({}));
export function setValue(key: string, value: any) {
2023-10-08 03:55:14 +02:00
store.setState({ [key]: value });
}
export default store;