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

Use history package #153

Open
andreypopp opened this issue Aug 10, 2015 · 2 comments
Open

Use history package #153

andreypopp opened this issue Aug 10, 2015 · 2 comments

Comments

@andreypopp
Copy link
Collaborator

React Router team recently extracted DOM API related part of its router into https://github.com/rackt/history

I think it would be nice for RRC to reuse this package.

@prasannavl
Copy link
Contributor

The problem with rackt's history is that it provides history as is without any way to view it as a context, which provides an unclean abstraction for contextual routing.

On that note, I prototyped a tiny history component before I started using react-router-component (after which I actually didn't see any need to use the history directly). Its here for reference: https://gist.github.com/prasannavl/7f6c47407f3d31230083

It implements the HTML5 history and an essential only memory history for the prototype, but should be very easy to do the rest considering the interfaces.

@prasannavl
Copy link
Contributor

Update: I've written a full implementation of a contextual history api with promises here: https://github.com/prasannavl/history-next. Might I suggest to have a look to see if its worth it going that way? :)

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

2 participants