mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Updates to realtime. Fixed refresh button.
This commit is contained in:
parent
638a674e99
commit
28921a7cd5
31 changed files with 373 additions and 314 deletions
|
|
@ -2,8 +2,12 @@ import create from 'zustand';
|
|||
|
||||
const store = create(() => ({}));
|
||||
|
||||
export function saveQuery(url, data) {
|
||||
store.setState({ [url]: data });
|
||||
export function saveQuery(key, data) {
|
||||
store.setState({ [key]: data });
|
||||
}
|
||||
|
||||
export function getQuery(key) {
|
||||
return store.getState()[key];
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import create from 'zustand';
|
||||
import produce from 'immer';
|
||||
import app from './app';
|
||||
import { getDateRange } from '../lib/date';
|
||||
import { getDateRange } from 'lib/date';
|
||||
|
||||
const store = create(() => ({}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue