Repository navigation
Conversation
… navigation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Stamp the entry being left with its market before pushing the new one, and sync on popstate so that stamp can't trigger the listener mid-switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
grothem
marked this pull request as draft
November 5, 2026 23:09
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pressing browser Back after switching markets changed the URL's
?marketName=but left the previously selected market on screen (report).Each market pick pushes a history entry with
?marketName=, but the store only read that param once, on first page load. Two changes:src/store/root.ts): apopstatelistener switches to the URL's market when it differs from the selected one. It passesomitQueryParameterUpdate = true, so it never writes the URL.popstatefires only on history traversal, so the app's own URL writes never trigger it.src/store/utils/queryParams.ts,protocolDataSlice.ts): if you switch markets from a URL with nomarketName(e.g. you landed on/markets), that entry is first rewritten in place with the market it was showing. Without this, Back returned to a URL with no market to restore.Routes without
marketNamekeep the current market, andsetCurrentMarketalready ignores unknown market ids.Test plan
Verified in a headless browser against the local dev server, starting from
/markets/with no param:?marketName=proto_mainnet_v3, market Core (the case without a starting param)?marketName=still loads that market🤖 Generated with Claude Code