Created
September 15, 2015 18:52
-
-
Save clalimarmo/588ca12e522e5fd0c666 to your computer and use it in GitHub Desktop.
Deep Linking with React + Flux, dispatching an action for app initialization on page load
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
// example app initialization | |
$(function() { | |
Dispatcher.dispatch({ | |
type: 'initialize app', | |
path: window.location.pathname, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment