You're designing a custom component rule!pagingComponent() to page through a list of items. The component must display the current page numbers being shown, as well as the total number of items. Users should be able to click arrows to increase or decrease the pagination.
Review the following:

Which two patterns should be used when calling the component in this scenario? (Choose two.)
Passing local!query.totalCount (from a dataSubset with returnTotalCount: true) into a rule input allows rule!pagingComponent() to accurately display total items for pagination.
Managing paging state (such as ri!pagingInfo) as a local variable in the main interface and updating it when arrows are clicked ensures that pagination is controlled centrally, maintaining state across the UI and allowing the component to function as intended.
Currently there are no comments in this discussion, be the first to comment!