mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-23 18:41:36 +01:00
14 lines
236 B
JavaScript
14 lines
236 B
JavaScript
import { create } from 'zustand';
|
|
|
|
const store = create(() => ({}));
|
|
|
|
export function saveQuery(key, data) {
|
|
store.setState({ [key]: data });
|
|
}
|
|
|
|
export function getQuery(key) {
|
|
return store.getState()[key];
|
|
}
|
|
|
|
export default store;
|