umami/store/queries.js

10 lines
165 B
JavaScript
Raw Normal View History

import create from 'zustand';
const store = create(() => ({}));
export function saveQuery(url, data) {
store.setState({ [url]: data });
}
export default store;