Skip to content
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

Ensure model changes are applied while session is starting #6835

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions panel/io/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ def _unblocked(self, doc: Document) -> bool:
3. The application has fully loaded and the Websocket is open.
"""
return (
doc is self.curdoc and self._thread_id in (self._current_thread, None) and
(not doc or not doc.session_context or self._loaded.get(doc))
doc is self.curdoc and
self._thread_id in (self._current_thread, None) and
(not (doc and doc.session_context and doc.session_context.session) or self._loaded.get(doc))
)

@param.depends('_busy_counter', watch=True)
Expand Down
Loading