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
8000
feat(browser): add wait-for-selector/condition to avoid post-navigation hydration races #4
After navigate_page, the first evaluate_js frequently runs before the SPA has hydrated, so it reads a pre-render state (in my case the app reported ply 0 / 0 overlay elements), and I had to fire the same script a second time to get real results. There's no wait primitive beyond navigate_page's own load wait, which fires on document load — before client-side React has mounted/hydrated.
Repro shape
navigate_page("http://localhost:5173")evaluate_js(/* query app state */)// returns empty / initial — app not hydrated yetevaluate_js(/* same query */)// now returns real state
Suggested fix
Add a wait primitive so callers can block on app-ready instead of guess-and-retry:
Activity