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

fix for JSON Parse error when using dash_ag_grid and dash pages #300

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BSd3v
Copy link
Collaborator

@BSd3v BSd3v commented May 1, 2024

Fixes #299.

  • testing for grid destroyed before trying to get the state

@BSd3v BSd3v linked an issue May 1, 2024 that may be closed by this pull request
@gvwilson gvwilson assigned archmoj and BSd3v and unassigned archmoj May 27, 2024
@gvwilson gvwilson requested a review from archmoj May 27, 2024 12:26
@gvwilson
Copy link
Contributor

@archmoj could you please have a look at this (or let us know that you don't feel you have enough context to review)?

@archmoj
Copy link

archmoj commented May 27, 2024

@BSd3v Thanks very much for the PR. It's looking good.
Could you add a test to lock down this bug from happening again?

@gvwilson I am not familiar with this repository.
By looking at the list of contributors @AnnMarieW, @ndrezn and @Farkites may help approving this PR.

BTW. I was wondering perhaps this check could/should be moved to be inside getColumnState as an early return to avoid duplicates and simplify this PR as well.

@BSd3v
Copy link
Collaborator Author

BSd3v commented May 27, 2024

Hello @archmoj,

getColumnState is not something that this repository owns as it comes from the underlying AG Grid. While yes they could do a return, they provide the warning that you are calling a function against a destroyed grid.

@gvwilson gvwilson changed the title fixing #299 fix for JSON Parse error when using dash_ag_grid and dash pages May 30, 2024
@BSd3v
Copy link
Collaborator Author

BSd3v commented May 31, 2024

Hello @gvwilson this issue can crop up at any point the grid is destroyed, this doesn't just apply to when using pages. Although it's a lot easier to test when using pages. 😁

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.

[BUG] JSON Parse error when using dash_ag_grid and dash pages
3 participants