Skip to content

Commit

Permalink
fix: reset API cache after API endpoint is changed (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Oct 10, 2023
1 parent 65ebfc7 commit b2b6279
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/AppRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ const AppRoot: React.FC = () => {

// TODO: Unify all store providers and move them there?
// Otherwise, these are not available from modals.
const [ExecutorsProvider] = initializeExecutorsStore();
const [SourcesProvider] = initializeSourcesStore();
const [TestsProvider] = initializeTestsStore();
const [TestSuitesProvider] = initializeTestSuitesStore();
const [TriggersProvider] = initializeTriggersStore();
const [WebhooksProvider] = initializeWebhooksStore();
const [ExecutorsProvider] = initializeExecutorsStore({}, [apiEndpoint]);
const [SourcesProvider] = initializeSourcesStore({}, [apiEndpoint]);
const [TestsProvider] = initializeTestsStore({}, [apiEndpoint]);
const [TestSuitesProvider] = initializeTestSuitesStore({}, [apiEndpoint]);
const [TriggersProvider] = initializeTriggersStore({}, [apiEndpoint]);
const [WebhooksProvider] = initializeWebhooksStore({}, [apiEndpoint]);
const [ClusterDetailsProvider] = initializeClusterDetailsStore({}, [apiEndpoint]);

const {currentData: clusterConfig, refetch: refetchClusterConfig} = useGetClusterConfigQuery(undefined, {
Expand Down

0 comments on commit b2b6279

Please sign in to comment.