Skip to content

Instantly share code, notes, and snippets.

@clalimarmo
Last active September 21, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clalimarmo/f1f5ea0c558aeb107ccb to your computer and use it in GitHub Desktop.
Save clalimarmo/f1f5ea0c558aeb107ccb to your computer and use it in GitHub Desktop.
Deep Linking with React + Flux, URL Store, for maintaining correct URL state
(function() {
Dispather.register(function(action) {
if (action.type !== 'navigate') {
return;
}
window.history.pushState({}, '', action.path);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment