Custom hook to synchronize session state with online/offline status changes.
Whether the parent component is initialized.
The unique id of the view.
Callback function to handle going online.
Callback function to handle going offline.
The current online status.
Custom hook to synchronize session state with online/offline status changes.