How to use the fluxible-router.RouteStore function in fluxible-router

To help you get started, we’ve selected a few fluxible-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github localnerve / flux-react-example / stores / RouteStore.js View on Github external
/***
 * Copyright (c) 2015, 2016 Alex Grant (@localnerve), LocalNerve LLC
 * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
 *
 * Extend the fluxible route store so routes can have action functions.
 * Just de/rehydate the functions.
 */
'use strict';

var FluxibleRouteStore = require('fluxible-router').RouteStore;
var inherits = require('inherits');
var transformer = require('../utils').createFluxibleRouteTransformer({
  actions: require('../actions/interface')
});

/**
 * Creates a RouteStore.
 *
 * @class
 */
function RouteStore () {
  FluxibleRouteStore.apply(this, arguments);
}

inherits(RouteStore, FluxibleRouteStore);