Remove assignment to preferencesPromise: getPreferences will only be called once
This commit is contained in:
parent
10b8a1c3cb
commit
9bbdc616c4
@ -14,9 +14,8 @@
|
|||||||
value: graphValue,
|
value: graphValue,
|
||||||
} = useAsyncReactive(() => getGraphData($search, $days), [search, days]);
|
} = useAsyncReactive(() => getGraphData($search, $days), [search, days]);
|
||||||
|
|
||||||
const preferencesPromise = getPreferences();
|
|
||||||
const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync(
|
const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync(
|
||||||
() => preferencesPromise
|
() => getPreferences()
|
||||||
);
|
);
|
||||||
|
|
||||||
$: revlogRange = daysToRevlogRange($days);
|
$: revlogRange = daysToRevlogRange($days);
|
||||||
|
Loading…
Reference in New Issue
Block a user