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
- Anywhere, call useWishlist and then call useWishlistSets with a user with wishlist sets.
- Check the network for requests
- See that an extra network request is being made
Context/environment
Additional information
Possible fix
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
Context/environment
Additional information
Possible fix