Skip to content

Feature Request - Reset Items List #4

@MorenoMdz

Description

@MorenoMdz

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions