| 1 | import { useAtomMount } from "@effect/atom-react"; |
| 2 | |
| 3 | import { runningThreadKeepAliveAtom } from "../../state/threads"; |
| 4 | |
| 5 | /** |
| 6 | * Desktop only. Keeps each running thread subscribed in every enabled |
| 7 | * environment, so opening one shows live state without a replay or a sync |
| 8 | * status flash. It mounts the atom without reading it, so thread updates |
| 9 | * never re-render. |
| 10 | */ |
| 11 | export function RunningThreadKeepAlive() { |
| 12 | useAtomMount(runningThreadKeepAliveAtom); |
| 13 | return null; |
| 14 | } |