Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

Screenshot 2025-12-18 at 12 33 51 PM

@Abdkhan14 Abdkhan14 requested a review from a team as a code owner December 18, 2025 17:34
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 18, 2025
if (!isChartSelectionAlertDismissed) {
dismissChartSelectionAlert();
}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Alert not immediately dismissed due to separate hook instances

The useDismissAlert hook is used in two separate components with the same key, but each instance maintains its own React state. When dismissChartSelectionAlert() is called in the Chart component, it updates localStorage but the ChartSelectionAlert component's state remains unchanged because useLocalStorageState doesn't sync state across instances. The alert will persist until the component remounts (on navigation or refresh), not immediately upon box draw as intended by the PR.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desired behaviour, only shouldn't exist on next load.

@Abdkhan14 Abdkhan14 merged commit 9e81308 into abdk/explore-attr-breakdowns-menu-vis Dec 18, 2025
43 of 45 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/explore-attr-breakdowns-cta-dismissal branch December 18, 2025 18:04
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants