The flag pauseWhenPageIsHidden works fine when you are on the page -> toast appears -> you switch to another tab = timers paused. But when the tab with your app is in the background and you render your toasts(e.g. through WebSockets) timers don't pause.
What has been done:
[x] add a default value for the useIsDocumentHidden hook
Issue:
The flag
pauseWhenPageIsHidden
works fine when you are on the page -> toast appears -> you switch to another tab = timers paused. But when the tab with your app is in the background and you render your toasts(e.g. through WebSockets) timers don't pause.What has been done: