fix itemCount not updating properly on zero value

This commit is contained in:
jeffvli
2026-01-17 16:25:37 -08:00
parent 8c5188dfd0
commit 790782b799
2 changed files with 2 additions and 2 deletions
@@ -94,7 +94,7 @@ export const useItemListInfiniteLoader = ({
const { setItemCount } = useListContext();
useEffect(() => {
if (!totalItemCount || !setItemCount) {
if (totalItemCount == null || !setItemCount) {
return;
}
@@ -62,7 +62,7 @@ export const useItemListPaginatedLoader = ({
const { setItemCount } = useListContext();
useEffect(() => {
if (!totalItemCount || !setItemCount) {
if (totalItemCount == null || !setItemCount) {
return;
}