Allow sortStatus
to be undefined
#171
arielshulman
started this conversation in
Ideas
Replies: 1 comment
-
Well, this discussion is a bit like #109 (comment), but that solution is also non TS acceptable. |
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
-
First of all thanks for the great work.
I've been using this component and encountered a TS error after I've used
sortStatus
andonSortStatusChange
, whilesortStatus
could beundefined
and it was initialized like this.Technically it is working as expected right now for me, as
sortStatus
is set toundefined
and the initial view starts with no sorting at all (put aside the TS error).After understanding the TS error (which was hard with the error plotted by
tsc
that said something onwithBorder
🤷♂️), I've thoughtsortStatus
it should considered a feature, not a bug, and just fix the Types that way.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions