Skip to content

Commit

Permalink
fix: automatically reload page when socket reconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jul 6, 2022
1 parent 3ecd8b8 commit 43f57d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/view/src/services/page-data.ts
Expand Up @@ -31,6 +31,7 @@ export const usePageData = () => {

socket.on('connect', () => {
setTimeout(() => setPageLoaded(true), 50);
setSocketError(false);
});
socket.on('connect_error', () => {
setSocketError(true);
Expand Down

0 comments on commit 43f57d1

Please sign in to comment.