Skip to content

Commit 582db9c

Browse files
docs(client): VCS status revalidation refreshes only when connected
The doc comment said the atom refreshes on mount. It refreshes only when a `connected` atom is passed and reads true: on mount and once per reconnect. Without it, only the debounced wake signal refreshes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7d4a9a8 commit 582db9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/client-runtime/src/state/vcsStatusRevalidation.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ interface VcsStatusRevalidationTarget {
1010
}
1111

1212
/**
13-
* One atom per environment and cwd that refreshes VCS status while mounted, so
14-
* controls showing the same checkout share one cadence. Refreshes on mount, on
15-
* reconnect when `connected` is given, and on `subscribeWake` (debounced); the
13+
* One atom per environment and cwd that refreshes VCS status while mounted and
14+
* shared by every subscriber. Refreshes only when `connected` is given and true
15+
* (on mount and on each reconnect), and on `subscribeWake` (debounced); the wake
1616
* subscription and timer end with the last subscriber.
1717
*/
1818
export function createVcsStatusRevalidationAtomFamily<R>(input: {

0 commit comments

Comments
 (0)