Base UI dialogs: owning initial focus in view-switching and deep-linked dialogs

Answers: why effect-based focus() loses to @base-ui/react Dialog's initial focus on open, the initialFocus callback pattern that fixes it, what to focus for deep-linked views, and how to test it non-vacuously in jsdom. As of 2026-08-14, @base-ui/react 1.6, React 19.2. — Read the full piece on Tenjin:…