Reusable Datatable (Typesafe)
Hey! I'm trying to make a reusable Datatable component, I envisioned basically sending the getter function (tRPC endpoint) as a prop into this component, but the types for this are a bit crazy... Has anyone ever done anything like this before? If so, any tips? Or any other ideas how to approach this problem?
Thank you so much!
3 Replies
nice coincidence, someone is asking about this right now
https://discord.com/channels/966627436387266600/1026502716601679972
Oh... Didn't see it 😅 thank you!
but the types for this are a bit crazyso crazy that some of the types aren't even exported np i wouldnt expect it to have been asked either