mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Updated query hooks for teams and websites.
This commit is contained in:
parent
9448aa3ab5
commit
2fa50892d8
61 changed files with 508 additions and 539 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue