Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Does not work with react-redux v6 #11

Closed
mizchi opened this issue Feb 1, 2019 · 0 comments · Fixed by #17
Closed

Does not work with react-redux v6 #11

mizchi opened this issue Feb 1, 2019 · 0 comments · Fixed by #17

Comments

@mizchi
Copy link

mizchi commented Feb 1, 2019

react-redux v6 から New Context API を使うようになったので、v6 以降で this.context.store 経由の参照に失敗して、react-redux-analytics がエラーを吐くようになった。

Warning: Failed context type: The context `store` is marked as required in `Component`, but its value is `undefined`.

redux-pluto だとこういう感じで修正が必要だった。

https://github.com/recruit-tech/redux-pluto/blob/618347c299996ccbd343e126020d705fa701d352/src/shared/components/utils/bindActionToPropFunctions.tsx#L65-L76

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant