We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f262c3 commit 4256765Copy full SHA for 4256765
src/pages/dashboard/DashboardPage.tsx
@@ -149,9 +149,9 @@ function DashboardPage() {
149
}, [currentLayout]);
150
151
// settingsQuery.isSuccess is always true due to the existence of initialData
152
- // settingsQuery.isStale will be true before the first actual fetch and it will never be true for fetched data
+ // settingsRevision will be 0 before the first actual fetch and it will never be 0 for fetched data
153
// This is kind of a hack but it works
154
- if (settingsQuery.isStale) {
+ if (settingsQuery.data.WebUI_Settings.settingsRevision === 0) {
155
return (
156
<div className="flex grow items-center justify-center text-panel-text-primary">
157
<Icon path={mdiLoading} size={4} spin />
0 commit comments