Skip to content

fix: refetch clients after same-document navigation - #1904

Open
dajiaohuang wants to merge 1 commit into
apollographql:mainfrom
dajiaohuang:fix/c1-2506-same-document-navigation
Open

dajiaohuang wants to merge 1 commit into
apollographql:mainfrom
dajiaohuang:fix/c1-2506-same-document-navigation

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Refetch the DevTools client query when the store-reset event completes, so a same-document History API navigation cannot leave the panel at zero registered clients.
  • Add a synthetic pageNavigated regression test and a patch changeset.

Closes #1901.

Validation

  • npm test -- --runInBand src/application/__tests__/App.test.tsx — 2 passed. The test run emitted a non-fatal React act(...) warning during the synthetic Apollo cache update.
  • npm run type-check — passed.
  • ESLint (ESLINT_USE_FLAT_CONFIG=true with the local Windows ESLint executable) — passed.
  • Prettier check for changed files — passed.

No real browser profile or page was used; no browser reproduction or CI status is claimed.

@dajiaohuang
dajiaohuang requested a review from a team as a code owner October 27, 2026 00:35
@apollo-cla

Copy link
Copy Markdown

@dajiaohuang: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Devtools panel disconnects on any history.pushState / replaceState URL change

2 participants