Listen to stores outside of the view layer in a Flux application
Well, you probably already have some components doing it, so it shouldn't be hard. Let's try it out by saying we would like to do something upon authentication when the app boots:
let userStore = require('../stores/userStore');
module.exports = userStore.addChangeListener.bind(
let user = userStore.getUser();
Binding is pretty easy, too; just do something like the following in your entry point:
Repeating this pattern brings you a basic form of standalone store event listeners that you can use throughout your app, avoiding polluting view components with stuff that doesn't really belong in them.