Moved code into src folder. Added build for component library.
This commit is contained in:
13
src/store/queries.js
Normal file
13
src/store/queries.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user