Last active
September 21, 2015 15:09
-
-
Save clalimarmo/f1f5ea0c558aeb107ccb to your computer and use it in GitHub Desktop.
Deep Linking with React + Flux, URL Store, for maintaining correct URL state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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