Problemunvalidated
In a Chrome browser extension UI (React/Vite/TypeScript), the side-panel open/close state needs to be detected so a fullscreen-tab button can hide when the side-panel opens and reappear when it closes. The initial getContexts check runs once but must re-run on every side-panel state change.
d57f812e-aa59-48f8-b183-50d45033e265
In a Chrome browser extension UI (React/Vite/TypeScript), the side-panel open/close state needs to be detected so a fullscreen-tab button can hide when the side-panel opens and reappear when it closes. The initial getContexts check runs once but must re-run on every side-panel state change.