You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey man, thanks again for this amazing lib. We're using it for quite some time now and it works really well.
There is one thing though that I was wondering:
Why can the output of resolveResponsiveProp be undefined?
From your code it seems that it always provides a default.
We're using it with Typescript and that forces us to always write something like that:
Hey man, thanks again for this amazing lib. We're using it for quite some time now and it works really well.
There is one thing though that I was wondering:
Why can the output of
resolveResponsiveProp
beundefined
?From your code it seems that it always provides a default.
We're using it with Typescript and that forces us to always write something like that:
const columns = resolveResponsiveProp([2, 3, 4]) || 2;
It's not a big deal but can lead to errors over time. I wish I could just leave the fallback out :)
The text was updated successfully, but these errors were encountered: