mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Added timezone and default date range settings.
This commit is contained in:
parent
bcd765e9d3
commit
33ac026637
30 changed files with 186 additions and 63 deletions
9
hooks/useForceUpdate.js
Normal file
9
hooks/useForceUpdate.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { useCallback, useState } from 'react';
|
||||
|
||||
export default function useForceUpdate() {
|
||||
const [, update] = useState(Object.create(null));
|
||||
|
||||
return useCallback(() => {
|
||||
update(Object.create(null));
|
||||
}, [update]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue