mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
The functional component conversion in PR #9030 introduced a bug where renderCount was always initialized to defaultLimit, causing only the first defaultLimit items to render on initial load when items were already available (e.g., from cached store data). This fix ensures renderCount is initialized to the maximum of existing items length or defaultLimit, allowing all available items to render on first load while maintaining the pagination behavior.