Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Data Grids with the same name to overwrite each others pinned and column-visibility states #2574

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

fichtnerma
Copy link
Contributor

@fichtnerma fichtnerma commented Sep 25, 2024

Description

Fix a bug in the usePersistentColumnState hook that caused Datagrids with the same name to overwrite each others pinned Columns State by adding the window.location as additional identifier

Example

  • I have verified if my change requires an example

Changeset

  • I have verified if my change requires a changeset

Copy link
Collaborator

@johnnyomair johnnyomair left a comment

Choose a reason for hiding this comment

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

As discussed internally, please use useRouteMatch instead of window.location

@nsams nsams self-requested a review September 27, 2024 08:01
@johnnyomair johnnyomair changed the title Fix a bug that caused Datagrids with the same name to overwrite each others pinned state Prevent Data Grids with the same name to overwrite each others pinned and column-visibility states Oct 1, 2024
Copy link
Collaborator

@johnnyomair johnnyomair left a comment

Choose a reason for hiding this comment

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

LGTM.

@johnnyomair
Copy link
Collaborator

@nsams please review

@johnnyomair johnnyomair merged commit 0bb181a into main Jan 15, 2025
11 checks passed
@johnnyomair johnnyomair deleted the COM-1037-data-grids-local-storage-bugfix branch January 15, 2025 08:23
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.

4 participants