RFC: Table Resolvers #560
Closed
lucasaarcoverde
started this conversation in
Technical RFCs
Replies: 2 comments
-
I think the discussion about createColumns matters a lot for deciding on how we'll use resolvers in general, so maybe we should take a step back and discuss that? About the resolvers I personally prefer the "component" API, instead of json. That would probably be the opposite direction from what you suggested, having all resolvers "agnostic" and using the components inside the render prop... Although I'm unsure if that could be less performant somehow |
Beta Was this translation helpful? Give feedback.
0 replies
-
We don't use these resolves anymore on our table sine we adopted tanstack/table/ |
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
-
Problem
The table resolvers were created to help the implementation of a column component and to serve as a shortcut for repetitive and direct usage of table columns. For example, you can only reuse the
date
resolver every time you need it, instead of implementing it many times with the column and loading logic. You can also use theroot
resolver to implement anything you want while reusing the resolvers logic.This brought some questions:
Why this matters?
Since when we introduced resolvers for our users we don’t have defined what it is. This brings some confusion to the users and us because we don’t know when to implement a new resolver and what is the boundary of evolving a resolver.
Proposal
IMO resolvers are important and they should exist, because it saves time when implementing a table. The main pain point is the lack of documentation on how to use the resolvers, what their responsibility is, and what it isn’t.
root
resolver and using other resolvers with therender
propertyResolver structure
IMO having the
render
prop on each resolver makes the root resolver useless, so we should remove it.Resolver creation
root
resolver and its proposalPros
Cons
Unresolved questions
createColumns
the best way of using resolvers?What's next
render
property from each resolverBeta Was this translation helpful? Give feedback.
All reactions