Skip to content

Commit

Permalink
Update App.tsx to include useInactiveListener hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 authored May 20, 2024
1 parent 511b284 commit 0cd54c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { createGlobalStyle } from 'styled-components';
import InitState from 'components/InitState';
import { AppContext } from 'contexts/AppContext';
import NavigationContextProvider from 'contexts/NavigationContext';
import { useAccount } from 'hooks';
import { useAccount, useInactiveListener } from 'hooks';
import { resetAdminSlice } from 'redux/slices/adminSlice';
import { resetChannelCreationSlice } from 'redux/slices/channelCreationSlice';
import { resetNotificationsSlice } from 'redux/slices/notificationSlice';
Expand Down Expand Up @@ -135,6 +135,7 @@ export default function App() {
return state.user;
});

useInactiveListener();
const { run, stepIndex, tutorialContinous } = useSelector((state: any) => state.userJourney);
// const location = useLocation();
// Build takes care of this now
Expand Down

0 comments on commit 0cd54c6

Please sign in to comment.