(v9) Introduce ability to create custom Table component when using createTableHook
#6284
Unanswered
neefrehman
asked this question in
Ideas
Replies: 1 comment
-
|
you already get to register any table component of any name via the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is similar to TanStack/form#1682. When testing out v9 and its ability to help create a flexible table package for use in our company's monorepo, I've been finding that it would be beneficial to ensure a single, canonical
Tablecomponent is used without requiring a separatetable.AppTablewrapper.As my suggestion in TanStack/form#1682 (comment) alludes to, the mindset I have going into the creation of our table package is that we should ideally a) not be leaking the
App*prefix to the callsite of our table hooks, and b) support a single top-level component that mixes the library's context with other context and UI we want to add.A rough sketch of what that API could look like is:
And then at the callsites:
I think the direction implied by the addition of
createTableHookis aligned with these thoughts, but I thought it was worth flagging a desire to take it a bit further!Beta Was this translation helpful? Give feedback.
All reactions