-
Hi all, I have a page that calls a component (Table) and passing to it some props, eg. columns, data, totalCount (taken from redux selectors) and currentPage (taken from redux selectors). In my Table component I have this:
and also:
In my page, I have the dispatch like this:
My actual problem is that when I press the next arrow, it seems to work, but it calls page 2 and again page 1. Any help would be more than appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just wrap the
|
Beta Was this translation helpful? Give feedback.
Just wrap the
dispatch
with this: