From 169e39c8a2b9423f4290d7a48b4fbfed1ea84712 Mon Sep 17 00:00:00 2001 From: Gabriel Santerre Date: Sat, 20 Aug 2022 04:41:09 -0400 Subject: [PATCH] chore(deps): support react-redux@8 (#392) --- src/view/draggable/connected-draggable.ts | 4 +--- src/view/droppable/connected-droppable.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/view/draggable/connected-draggable.ts b/src/view/draggable/connected-draggable.ts index 867fc382c..e763bd7af 100644 --- a/src/view/draggable/connected-draggable.ts +++ b/src/view/draggable/connected-draggable.ts @@ -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, diff --git a/src/view/droppable/connected-droppable.ts b/src/view/droppable/connected-droppable.ts index 2d77f3213..4404c7ccb 100644 --- a/src/view/droppable/connected-droppable.ts +++ b/src/view/droppable/connected-droppable.ts @@ -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,