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

Move columnOrder spread in columnReorder #542

Merged
merged 1 commit into from
May 23, 2023
Merged

Conversation

naf305
Copy link
Contributor

@naf305 naf305 commented May 20, 2023

In some scenarios the splice will throw an exception if columnOrder is readOnly. Moving the columnOrder spread before the splice fixes the issue.

In some scenarios the splice will throw an exception if columnOrder is readOnly. Moving the columnOrder spread before the splice fixes the issue.
@vercel
Copy link

vercel bot commented May 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2023 8:39pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2023 8:39pm

@KevinVandy
Copy link
Owner

Would you be able to share an example of when this happens. Well probably merge, but want to understand the problem fully first.

@naf305
Copy link
Contributor Author

naf305 commented May 22, 2023

It seems to happen only when I manage the columnOrder state:
image

@KevinVandy KevinVandy merged commit 3aaa5a0 into KevinVandy:main May 23, 2023
3 checks passed
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.

None yet

2 participants