umami/store/queries.js

10 lines
165 B
JavaScript

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