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

What to change for react-router 1.0? #1

Open
Download opened this issue Nov 12, 2015 · 1 comment
Open

What to change for react-router 1.0? #1

Download opened this issue Nov 12, 2015 · 1 comment

Comments

@Download
Copy link

React-router changed its API for 1.0:
https://github.com/rackt/react-router/blob/832c42946c874fe56ffde0066b1088054311cb98/CHANGES.md

I am trying to get it to work with Morearty, but so far no luck. Any idea what should change to get this to work? I especially have trouble translating what I think is the crux of this whole example to the new API:

var metaBinding = this.getDefaultBinding().meta();
Router.run(Routes, Router.HistoryLocation, (Handler, state) => {
    this.Handler = Handler;
    metaBinding.set('currentPath', state.path);
});
@Download
Copy link
Author

Router.run does not exist anymore.

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

1 participant