TanStack Table version
v8.21.3
Framework/Library version
React v19.2.7
Describe the bug and the steps to reproduce it
ColumnDef defines accessorKey as
accessorKey: (string & {}) | keyof TData;
Which causes accessorKey not to produce the same suggestions as a form field's name key in tanstack form.
My suggestion is to define accessorKey as
accessorKey: DeepKeys<TData>;
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://www.typescriptlang.org/play/?#code/PTAEHkBsBMCgFMAeAHA9gJwC6gJYDtN50AzAQwGN5QBBcygZ3owGl4BPAYVUgFcBbPABF4xAEKl68ADwAVQaUylQSQnmj1QAJVQB3eYoA0oGQDVSvKgF5QPPAGs8uvAD5liVetBdeA4WInScgqkRqbmPPCuAN6woHG40AD8AFyg9Jjo+ADmANyx8RQMTOisbKkAFOmZeFmgAGSgUQC+AJSgAD6gduyoxMb6pHlNsLAgoABy8DoIKBjY+IQkFFS0RSzs3vxCIuKSsgNuHhraesGhZhag1rYOTq4q8Goam747AftnxhcR0flxOElUlVsnl4qBCvBGOsyqBhPBkKV6B9FM4hkA
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
Yes, I think I know how to fix it and will discuss it in the comments of this issue
Terms & Code of Conduct
TanStack Table version
v8.21.3
Framework/Library version
React v19.2.7
Describe the bug and the steps to reproduce it
ColumnDefdefinesaccessorKeyasWhich causes accessorKey not to produce the same suggestions as a form field's name key in tanstack form.
My suggestion is to define accessorKey as
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://www.typescriptlang.org/play/?#code/PTAEHkBsBMCgFMAeAHA9gJwC6gJYDtN50AzAQwGN5QBBcygZ3owGl4BPAYVUgFcBbPABF4xAEKl68ADwAVQaUylQSQnmj1QAJVQB3eYoA0oGQDVSvKgF5QPPAGs8uvAD5liVetBdeA4WInScgqkRqbmPPCuAN6woHG40AD8AFyg9Jjo+ADmANyx8RQMTOisbKkAFOmZeFmgAGSgUQC+AJSgAD6gduyoxMb6pHlNsLAgoABy8DoIKBjY+IQkFFS0RSzs3vxCIuKSsgNuHhraesGhZhag1rYOTq4q8Goam747AftnxhcR0flxOElUlVsnl4qBCvBGOsyqBhPBkKV6B9FM4hkA
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
Yes, I think I know how to fix it and will discuss it in the comments of this issue
Terms & Code of Conduct