diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx b/server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx index e05ce398856..f10b4a70348 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/SettingsApp.tsx @@ -17,6 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import * as React from 'react'; import { getDefinitions } from '../../../api/settings'; import withComponentContext from '../../../app/components/componentContext/withComponentContext'; @@ -31,6 +32,8 @@ import { Component } from '../../../types/types'; import '../styles.css'; import SettingsAppRenderer from './SettingsAppRenderer'; +const queryClient = new QueryClient(); + interface Props { component?: Component; } @@ -77,7 +80,11 @@ class SettingsApp extends React.PureComponent<Props, State> { render() { const { component } = this.props; - return <SettingsAppRenderer component={component} {...this.state} />; + return ( + <QueryClientProvider client={queryClient}> + <SettingsAppRenderer component={component} {...this.state} /> + </QueryClientProvider> + ); } } |