Table Custom Feature with useReactTable Initial State #5979
Unanswered
thescripted
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was following the Guidelines for creating Custom Features, but it seems like when creating a custom feature, the new features does not propagate to
table.initialState
configurations. This means that the only way to leverage the Density State in this example, would be throughtable.state
and it's associatedonChangeFn
.If you take a look at the sandbox: https://tanstack.com/table/v8/docs/framework/react/examples/custom-features?panel=sandbox, and you attempt to apply
initialState: { density: "md" }
you will get a type-error.I thought it might have been that I need to extend
CompleteInitialTableState
withDensityTableState
but that did not resolve my issue.Any guidance? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions