Improve memoization of page rendering
This commit is contained in:
@@ -36,8 +36,10 @@ const BaseReaderHorizontalPager = ({
|
||||
createPage={(page, pagesIndex, shouldLoad, _, setRef) =>
|
||||
createReaderPage(
|
||||
page,
|
||||
() => onLoad?.(pagesIndex),
|
||||
() => onError?.(page.primary.index),
|
||||
pagesIndex,
|
||||
true,
|
||||
onLoad,
|
||||
onError,
|
||||
shouldLoad,
|
||||
true,
|
||||
currentPageIndex,
|
||||
|
||||
Reference in New Issue
Block a user