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,
|
||||
} = useAsyncReactive(() => getGraphData($search, $days), [search, days]);
|
||||
|
||||
const preferencesPromise = getPreferences();
|
||||
const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync(
|
||||
() => preferencesPromise
|
||||
() => getPreferences()
|
||||
);
|
||||
|
||||
$: revlogRange = daysToRevlogRange($days);
|
||||
|
Loading…
Reference in New Issue
Block a user