Skip to content

fix: fade out was not restored on navigations from a thread or task#594

Merged
maartenbreddels merged 1 commit intomasterfrom
fix_no_fade_restore_on_navigation
Apr 12, 2024
Merged

fix: fade out was not restored on navigations from a thread or task#594
maartenbreddels merged 1 commit intomasterfrom
fix_no_fade_restore_on_navigation

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

A busy/idle pair of messages is only send when around a websocket message is handled in the main solara-server task.
When the browser location changes, we fade out the main content, which we restore again when the idle message is received. But if we change the location from a thread or task, the busy and idle messages are not send, so the fade out is not restored, leaving the main content faded out.

To solve this we only fade out when the location changes and the kernel is busy.

@maartenbreddels maartenbreddels marked this pull request as ready for review April 10, 2024 15:06
@maartenbreddels maartenbreddels changed the title fix: fade out was not restore on navigations from a thread or task fix: fade out was not restored on navigations from a thread or task Apr 10, 2024
A busy/idle pair of messages is only send when around a websocket message
is handled in the main solara-server task.
When the browser location changes, we fade out the main content, which
we restore again when the idle message is received.
But if we change the location from a thread or task, the busy and
idle messages are not send, so the fade out is not restored,
leaving the main content faded out.

To solve this we only fade out when the location changes and the
kernel is busy.
@maartenbreddels maartenbreddels force-pushed the fix_no_fade_restore_on_navigation branch from 9a50116 to 6f48654 Compare April 10, 2024 17:29
@maartenbreddels maartenbreddels merged commit 1dad9bd into master Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant