Skip to content

Commit

Permalink
Merge branch 'bugfix/ZKUI-412' into tmp/octopus/w/2.2/bugfix/ZKUI-412
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-e committed Nov 10, 2023
2 parents 0d5c0a6 + 343fca2 commit 6b54d20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/react/FederableApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ import MetricsAdapterProvider from './next-architecture/ui/MetricsAdapterProvide
import { LocationAdapterProvider } from './next-architecture/ui/LocationAdapterProvider';

import zenkoUIReducer from './reducers';
import { useMemo } from 'react';

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const InternalRouter = ({ children }: { children: React.ReactNode }) => {
const config = useConfig();
const store = createStore(
zenkoUIReducer(),
composeEnhancers(applyMiddleware(thunk)),
const store = useMemo(
() =>
createStore(zenkoUIReducer(), composeEnhancers(applyMiddleware(thunk))),
[],
);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/types/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type { ManagementClient as ManagementClientInterface } from './management
import type { STSClient } from './sts';
import type { Workflows } from './workflow';
export type AuthState = {
readonly isConfigLoaded: string;
readonly isConfigLoaded: boolean;
readonly isClientsLoaded: boolean;
readonly configFailure: boolean;
readonly managementClient: ManagementClientInterface;
Expand Down

0 comments on commit 6b54d20

Please sign in to comment.