4.0.1 • Published 8 years ago

router5.transition-path v4.0.1

Weekly downloads
498
License
MIT
Repository
github
Last release
8 years ago

transition-path

Router5 helper to determine a transition path. Used by router5, router5-listeners and redux-router5.

Installation

npm install --save router5.transition-path

Usage

This module exports a transitionPath function which can compute the transition path between two router5 states: segments to deactivate, segments to activate and intersection node between the two.

It also exports (as named exports) a nameToIDs function for transforming a route name to a list of segments.

import transitionPath from 'router5.transition-path';

const { toActivate, toDeactivate, intersection } = transitionPath(toState, fromState);

ES5

var transitionPath = require('router5.transition-path').default;

See the tests for examples.

4.0.1

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago