UNPKG

react-crossroads

Version:

Client side router for web applications built with React and utilizing the Flux architecture. The backing routing engine is CrossroadsJs.

17 lines (11 loc) 390 B
class RedirectChain constructor: (@actions, @toPath, @currentChain) -> render: => # TODO: Figure out something better than a set timeout setTimeout => @actions.replace @toPath unless @currentChain? return null if @currentChain instanceof RedirectChain return @currentChain.currentChain.render() @currentChain.render() module.exports = RedirectChain