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

Looking to use onColumnSizingChange. Currently seeing callback returns the onChange function. #274

Closed
1 task done
jsykesdev opened this issue Feb 15, 2024 · 1 comment

Comments

@jsykesdev
Copy link

mantine-react-table version

1.3.2

react & react-dom versions

18.2

Describe the bug and the steps to reproduce it

I've added this line to my table i build with useMantineReactTable :

onColumnSizingChange:(newColumnSize) => { console.log("updating column sizing", newColumnSize) },

This is what is logged out :

updating column sizing old => ({
...old,
...newColumnSizing
})

i assumed newColumnSize would be an object, not a function, so that I could manage the state here but it appears to be logging a function from tanstack's core, so either i'm calling this incorrectly or it is not implemented.

Minimal, Reproducible Example - (Optional, but Recommended)

https://stackblitz.com/edit/github-rdrmgx?file=src%2FTS.tsx

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@jsykesdev
Copy link
Author

I found the explanation here :

KevinVandy/material-react-table#565

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

No branches or pull requests

1 participant