Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with toJS(getIn(...)) - from version 5.0.0 #183

Open
imbr opened this issue Nov 11, 2018 · 2 comments
Open

Problem with toJS(getIn(...)) - from version 5.0.0 #183

imbr opened this issue Nov 11, 2018 · 2 comments

Comments

@imbr
Copy link

imbr commented Nov 11, 2018

Error message:

TypeError: _toJS is undefined
ConnectedRouter/_this.unsubscribe<
C:/Users/..../test/node_modules/connected-react-router/lib/ConnectedRouter.js:105

  102 | _this.unsubscribe = context.store.subscribe(function () {
  103 |   // Extract store's location
  104 |   var _toJS = toJS(getIn(context.store.getState(), ['router', 'location'])),
> 105 |       pathnameInStore = _toJS.pathname,
      | ^  106 |       searchInStore = _toJS.search,
  107 |       hashInStore = _toJS.hash; // Extract history's location
  108 | 

React version: ^16.6.1
connected-react-router version: >= 5.0.0

Additional comments:
connected-react-router version 4.5.0, with the same React configuration works completely correctly.

@mattvague
Copy link
Contributor

Probably related to this: #175

@actraiser
Copy link

actraiser commented Nov 14, 2018

5.0.0 works fine here though.
The "TypeError: _toJS is undefined" Error comes up when I upgrade to 5.0.1.

-act

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

No branches or pull requests

3 participants