Preserve focus=1 on initial shell loads
When a shell route is opened directly with ?focus=1 (for example /forms?focus=1 or /services?focus=1, which are generated by the mode-home “Find a form/service” links), this new initial no-op returns before the focus branch below runs. The previous rAF sync focused the shared composer on hard loads as well as client navigations, but now only later search-param changes can focus it, so reloads/new tabs/deep links with focus=1 lose the intended keyboard focus.
Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #201 (comment)
When a shell route is opened directly with
?focus=1(for example/forms?focus=1or/services?focus=1, which are generated by the mode-home “Find a form/service” links), this new initial no-op returns before the focus branch below runs. The previous rAF sync focused the shared composer on hard loads as well as client navigations, but now only later search-param changes can focus it, so reloads/new tabs/deep links withfocus=1lose the intended keyboard focus.Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #201 (comment)