You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 32cd8cb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): every return to the window refreshes git status, palette mount is an explicit effect
Coming back to the window refreshes the checkout's status on each window focus
and each switch to a visible tab, as before, not only when the cached focus
state flips. The palette's mount tracking is a plain effect instead of a ref
callback, and the revalidation atom's comment says when it refreshes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Marks the palette as mounted while the calling component is. An unmounted
33
+
* palette cannot stay open, so the last unmount resets the store.
34
+
*/
35
+
exportfunctionuseCommandPaletteMount(): void{
36
+
// oxlint-disable-next-line t3code/react-effect-budget -- The palette's mount gates its global shortcuts, and leaving the route while it is open calls no close handler, so only unmount can reset the store.
0 commit comments