File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
store/reducers/capabilities Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ function GetCapabilities({children}: {children: React.ReactNode}) {
216216 const capabilitiesLoaded = useCapabilitiesLoaded();
217217
218218 useMetaCapabilitiesQuery();
219+ // It is always true if there is no meta, since request finishes with an error
219220 const metaCapabilitiesLoaded = useMetaCapabilitiesLoaded();
220221
221222 return (
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export function useCapabilitiesLoaded() {
2222
2323 const {data, error} = useTypedSelector((state) => selectDatabaseCapabilities(state, database));
2424
25+ // If capabilities endpoint is not available, request finishes with error
26+ // That means no new features are available
2527 return Boolean(data || error);
2628}
2729
@@ -97,6 +99,8 @@ export function useMetaCapabilitiesQuery() {
9799export function useMetaCapabilitiesLoaded() {
98100 const {data, error} = useTypedSelector(selectMetaCapabilities);
99101
102+ // If capabilities endpoint is not available, request finishes with error
103+ // That means no new features are available
100104 return Boolean(data || error);
101105}
102106
You can’t perform that action at this time.
0 commit comments