mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 19:16:01 +00:00
prettier
This commit is contained in:
@@ -13,7 +13,7 @@ export default function useFetch({
|
||||
defaultValue = undefined,
|
||||
reloadTrigger = undefined,
|
||||
cacheKey = undefined,
|
||||
transform = (x) => x,
|
||||
transform = x => x,
|
||||
...config
|
||||
}) {
|
||||
const [value, setValue] = React.useState([defaultValue, []]);
|
||||
@@ -21,7 +21,7 @@ export default function useFetch({
|
||||
const socket = useSocket();
|
||||
|
||||
const handleReload = React.useCallback(() => {
|
||||
setLoadCounter((counter) => counter + 1);
|
||||
setLoadCounter(counter => counter + 1);
|
||||
}, []);
|
||||
|
||||
const indicators = [url, stableStringify(data), stableStringify(params), loadCounter];
|
||||
|
||||
Reference in New Issue
Block a user