Skip to content

Commit

Permalink
Make App a singleton. (Graylog2#20643)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuspahl authored Oct 16, 2024
1 parent 7a556e7 commit ccf9d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graylog2-web-interface/src/routing/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import HotkeysProvider from 'contexts/HotkeysProvider';
import HotkeysModalContainer from 'components/hotkeys/HotkeysModalContainer';
import PerspectivesProvider from 'components/perspectives/contexts/PerspectivesProvider';
import PageContextProviders from 'components/page/contexts/PageContextProviders';
import { singleton } from 'logic/singleton';

const AppLayout = styled.div`
display: flex;
Expand Down Expand Up @@ -105,4 +106,4 @@ const App = () => (
</QueryParamProvider>
);

export default App;
export default singleton('components.App', () => App);

0 comments on commit ccf9d84

Please sign in to comment.