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 have a paginator that overrides Paginator->getPageItems(), and I've noticed that it's being called twice on each request. If I look in Paginator.php I can see it's being called on line 114 and line 254. This results in the getPageItems method being called twice on my paginator class.
I'm just wondering if this is expected behavior or if I'm possibly doing something wrong. Ideally it would only ever be called once on each request, to get the items for the current page.
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
-
Hi All,
I have a paginator that overrides Paginator->getPageItems(), and I've noticed that it's being called twice on each request. If I look in Paginator.php I can see it's being called on line 114 and line 254. This results in the getPageItems method being called twice on my paginator class.
I'm just wondering if this is expected behavior or if I'm possibly doing something wrong. Ideally it would only ever be called once on each request, to get the items for the current page.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions