-
Notifications
You must be signed in to change notification settings - Fork 27
Fix Connection Lost Component #8775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for ilios-frontend ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| }); | ||
|
|
||
| reconnect = restartableTask(async (force) => { | ||
| await timeout(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this is needed, as re-rendering seems fine without it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it's only in development, wasn't able to reproduce it In another way,
Steps:
pnpm start
Load ilios, disconnect network
make a change to any file that would cause a rebuild (js/gjs)
when the auto refresh happens you get an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the new look and feel, and the only addition I would make is the "Unable to Reconnect" message < 768px. It's not vertically centered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy fix, good catch. ✅
michaelchadwick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few quibbles.
65ea088 to
d7de949
Compare
We had a bug here that would break re-render when the network was down. This almost certainly only broke in development, but the fix is to wait a moment before doing anything. I also fixed up the style in multiple viewports so it's prettier.
d7de949 to
5418f00
Compare

We had a bug here that would break re-render when the network was down. This almost certainly only broke in development, but the fix is to wait a moment before doing anything. I also fixed up the style in multiple viewports so it's prettier.
Test by loading ilios and the running off your network. You should get the banner and some other nice features.