-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I was trying to play with the code in the hook, I was able to reset the list adding a RESET action
function resetItems() {
dispatch({ type: "RESET" });
}
This will set the state back to initialState, it does reset the item list, but I don't quite understand how the cycle of the pagination work there, that way it does not restart fetching items anymore after a reset.
The idea is to use this in a search form, and reset when needed to have a clear list and refetch the correct list with pagination.
Metadata
Metadata
Assignees
Labels
No labels