Updated query hooks for teams and websites.

This commit is contained in:
Mike Cao 2024-01-29 01:32:05 -08:00
parent 9448aa3ab5
commit 2fa50892d8
61 changed files with 508 additions and 539 deletions

View file

@ -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;