Skip to content

Commit 7a7a4d3

Browse files
Kastier1claude
andauthored
fix: drop temporal=True from fetch_recent_blogs (#6399)
The Resources navbar dropdown's `blog_column` mounts during initial render (via Radix navigation menu's pre-mounted panels). Its `on_mount=RecentBlogsState.fetch_recent_blogs` races the WebSocket handshake; with `temporal=True` the event is silently dropped if the socket isn't yet connected, and `on_mount` doesn't refire — so the column stays empty on slow connects. Without `temporal`, the event queues and fires once the socket is up. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7b5d77e commit 7a7a4d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/reflex-site-shared/src/reflex_site_shared/backend

packages/reflex-site-shared/src/reflex_site_shared/backend/get_blogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RecentBlogsState(rx.State):
2626
posts: rx.Field[list[BlogPostDict]] = rx.field(default_factory=list)
2727
_fetched: bool = False
2828

29-
@rx.event(background=True, temporal=True)
29+
@rx.event(background=True)
3030
async def fetch_recent_blogs(self):
3131
"""Fetch recent blogs."""
3232
if self._fetched:

0 commit comments

Comments
 (0)