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
WinJS Navigation and Browser History? #1532
Comments
FYI: I created a prototype that is working so far for my needs and posted about it here: http://staxmanade.com/2015/10/integrate-winjs-navigation-with-the-browser-s-history/ Would still like to hear any thoughts the team has considered... |
Jason, Just check out the Window History API built into the browser. |
Thanks @toddpi314 I noticed it's a bit more nuanced than just pushing state from what I found out... I updated my blog post http://staxmanade.com/2015/10/integrate-winjs-navigation-with-the-browser-s-history/ and refactored the tracking into From what I was seeing a |
I think the point of it being "nuanced" is the reason it isn't a default feature in WinJS and most likely not a subject for the framework team. The In your case, if you press the "Back" button in a browser and see collisions with your own call of MS has done a great job with shipping a 'navigator' implementation with the VS templates that really shows how to utilize the existing +1 for Window History API calls not to be included in WinJS |
I agree that it probably shouldn't be directly included in I got tired of iterating on a blog post - so I threw up a better version of the component here https://github.com/staxmanade/WinJSBrowserHistory I'll take a dependency on this in my side project and iterate on it as I go. |
Hey All,
Has there been any thought/discussion around how
WinJS.Navigation
interacts with the native browser history?Is there a way I could bring my own history management library. Say react-router, History.js, or Director and still leverage the
WinJS
library as a whole.If the
BackButton
and any other controls that depend onWinJS.Navigation
could be adapted to work with other history management API's that would be great. Or if WinJS could provide a routing solution that would allow me to enterhttp://mywebsite.com/my/deep/route/with/data
and be able to handle it within a client side app that uses the WinJS controls that would be helpful.Thoughts?
Thanks,
Jason
The text was updated successfully, but these errors were encountered: