isotoma / react-cognito

Library for integrating Facebook React and Amazon Cognito
Apache License 2.0
116 stars 48 forks source link

react-redux@6.0.0 Uncaught TypeError: Cannot read property 'getState' of undefined #46

Open davegravy opened 5 years ago

davegravy commented 5 years ago

react-redux 6.0 removed the ability to access the store from legacy context. This library uses

const { store } = this.context;
const state = store.getState();

store is undefined under version 6