T
TanStack2y ago
sensitive-blue

Format of "id" key value in ColumnDef.

Hi. I faced an interesting thing when was implementing column resizing. I followed an example from docs. https://tanstack.com/table/v8/docs/framework/react/examples/column-resizing-performant I faced a problem with column "id"s. When I'm providing an "id" value with spaces - my table is not working as expected (I know where my logic breaks). f.e { id: 'id with spaces' }; If I provide "id" as one word or without spaces and so on, I have no problems; f.e. { id: 'id_without_spaces' } or { id: 'idWithoutSpaces' } or { id: 'id.without.spaces' } So, my question is related to the exact format of "id"s in columnDef. Which format should it have? Maybe, I miss any standards regarding it or something like that?
React Table Column Resizing Performant Example | TanStack Table Docs
An example showing how to implement Column Resizing Performant in React Table
1 Reply
sensitive-blue
sensitive-blueOP2y ago
@KevinVandy could you please help?

Did you find this page helpful?