umami/store/queries.js
2023-02-14 17:23:20 -08:00

14 lines
232 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;