Skip to content

The wishlistSets reducer is reseting the sets ids #878

@joaopedrofump

Description

@joaopedrofump

Expected behavior

The wihslistSets reducer should not reset the sets ids or at least should not reset the ones of the same user.

Actual behavior

The wihslistSets reducer is reseting the sets ids on action FETCH_WISHLIST_SUCCESS. This makes the useWishlistSets create extra network requests if we use useWishlistSets after useWishlist because the later triggers the action FETCH_WISHLIST_SUCCESS.

Steps to reproduce

  1. Anywhere, call useWishlist and then call useWishlistSets with a user with wishlist sets.
  2. Check the network for requests
  3. See that an extra network request is being made

Context/environment

Additional information

Possible fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedIt's clear what the subject of the issue is about, and what the resolution should betype: bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions