Computed variables

the _pagination_view function does not refresh the page number correctly nor the total, when its controls are inherited as a class, such as “page_number” and “total_pages”, but when they are used directly in the main State, it works correctly, but when I organize in an additional class, those calculated variables, it has a delayed display, that is, the values displayed correspond to the previous filtering, I could only correct by incorporating new return methods page_number total_pages and total_items to the main State

Could you share the code you want that’s not working along with the code you have that is working?