You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Error on import of react-beautiful-dnd together with react-redux@^6.0.0 or react-redux@^7.0.0.
This seems to be stemming from the react-redux "Breaking Changes" point #2noted here.
Error message Uncaught Invariant Violation: storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect
Please do not override react-beautiful-dnd's version of redux. It is an internal dependency. Your bundler would be fine with two versions if it needed it
Describe the bug
Error on import of
react-beautiful-dnd
together withreact-redux@^6.0.0
orreact-redux@^7.0.0
.This seems to be stemming from the react-redux "Breaking Changes" point #2 noted here.
Error message
Uncaught Invariant Violation: storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect
Please see attached log files:
localhost-1556994978137.log
Screenshots

To Reproduce
Steps to reproduce the behavior:
create-react-app
yarn add react
yarn add react-redux
yarn add react-beautiful-dnd
import { DragDropContext } from 'react-beautiful-dnd';
to App.jsyarn start
Expected behavior
It should work with
react-redux@^6.0.0
orreact-redux@^7.0.0
react-beautiful-dnd version
[email protected]
react-redux versions tested
I get this same error with any of these versions:
[email protected]
[email protected]
[email protected]
[email protected]
react version
react@^16.8.6
The text was updated successfully, but these errors were encountered: