Skip to content

Commit

Permalink
Update packages/synapse-react-client/src/utils/AppUtils/session/Appli…
Browse files Browse the repository at this point in the history
…cationSessionManager.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>
  • Loading branch information
jay-hodgson and nickgros authored Sep 17, 2024
1 parent 94b6393 commit 9db9d2c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export function ApplicationSessionManager(
refreshSession()
}
// PORTALS-3249: Set up an interval to call refreshSession every 60 seconds (60000 milliseconds)
const intervalId = setInterval(refreshSession, 60000)
const intervalId = setInterval(() => {
refreshSession()
}, 60000)

// Clean up the interval when the component is unmounted
return () => clearInterval(intervalId)
Expand Down

0 comments on commit 9db9d2c

Please sign in to comment.