Updates to realtime. Fixed refresh button.

This commit is contained in:
Mike Cao 2023-02-14 17:23:20 -08:00
parent 638a674e99
commit 28921a7cd5
31 changed files with 373 additions and 314 deletions

View file

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

View file

@ -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(() => ({}));