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
I am wondering, is the pagination component to work with 0 items?
in the example from the docs, if I set count={0} on the root component, I get a '0' and a '1' page that I can switch to, instead of just a '1' page.
It also looks like you do not have test cases for that, so I am wondering if this is somewhat on purpose not supported? Easy workaround is to set count={1} for that case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am wondering, is the pagination component to work with 0 items?
in the example from the docs, if I set
count={0}
on the root component, I get a '0' and a '1' page that I can switch to, instead of just a '1' page.It also looks like you do not have test cases for that, so I am wondering if this is somewhat on purpose not supported? Easy workaround is to set
count={1}
for that case.Beta Was this translation helpful? Give feedback.
All reactions