Updated query hooks for teams and websites.
This commit is contained in:
@@ -2,8 +2,12 @@ import { create } from 'zustand';
|
||||
|
||||
const store = create(() => ({}));
|
||||
|
||||
export function setValue(key, value) {
|
||||
export function setValue(key: string, value: any) {
|
||||
store.setState({ [key]: value });
|
||||
}
|
||||
|
||||
export function touch(key: string) {
|
||||
setValue(key, Date.now());
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user