Add state explorer and map stackups#2
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8069b1d2fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| selectedSlug | ||
| }: StateExplorerControlsProps) { | ||
| const router = useRouter(); | ||
| const [value, setValue] = useState(selectedSlug); |
There was a problem hiding this comment.
Sync selector state when selectedSlug prop changes
StateExplorerControls seeds local state from selectedSlug once, but never updates it when props change after client navigation (e.g., back/forward between /states?state=... URLs). This can desync the dropdown/current-pick/shareable-link from the profile data rendered for the new query.
Useful? React with 👍 / 👎.
Summary
Testing