Skip to content

Commit

Permalink
Ensure model changes are applied while session is starting (#6835)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 21, 2024
1 parent 650f4f9 commit 75169d5
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 75169d5

Please sign in to comment.