pl-fe: Replace immer with mutative

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-11-05 20:45:57 +01:00
parent 7ca17884f8
commit cc858d4f0f
10 changed files with 133 additions and 108 deletions

View File

@ -39,9 +39,9 @@ const UserIndex: React.FC = () => {
updateQuery();
}, []);
const hasMore = items.count() < total && !!next;
const hasMore = items.length < total && !!next;
const showLoading = isLoading && items.isEmpty();
const showLoading = isLoading && !items.length;
return (
<Column label={intl.formatMessage(messages.heading)}>