Skip to content

Commit

Permalink
chore(deps): support react-redux@8 (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
100terres committed Aug 21, 2022
1 parent 7106efa commit 82c111e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/view/draggable/connected-draggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ const ConnectedDraggable = connect(
{
// Using our own context for the store to avoid clashing with consumers
context: StoreContext as any,
// Default value, but being really clear
pure: true,
// When pure, compares the result of mapStateToProps to its previous value.

// Default value: shallowEqual
// Switching to a strictEqual as we return a memoized object on changes
areStatePropsEqual: isStrictEqual,
Expand Down
4 changes: 1 addition & 3 deletions src/view/droppable/connected-droppable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ const ConnectedDroppable = connect(
{
// Ensuring our context does not clash with consumers
context: StoreContext as any,
// pure: true is default value, but being really clear
pure: true,
// When pure, compares the result of mapStateToProps to its previous value.

// Default value: shallowEqual
// Switching to a strictEqual as we return a memoized object on changes
areStatePropsEqual: isStrictEqual,
Expand Down

0 comments on commit 82c111e

Please sign in to comment.