 
   renderComponent: (component, options = {}) ->
     options.props ||= {}
-    CURRENT_ROUTER_PARAMS = options.routerParams or {}
-    CURRENT_ROUTER_QUERY  = options.routerQuery or {}
-    CURRENT_ROUTER_PATH   = options.routerPath   or '/'
     unmountAfter = options.unmountAfter or 1
     root = document.createElement('div')
     promise = new Promise( (resolve, reject) ->

    )
    # defer adding the then callback so it'll be called after whatever is attached after the return
    _.defer -> promise.then ->
      _.delay ->
        React.unmountComponentAtNode(root)
        CURRENT_ROUTER_PATH   = '/'
        CURRENT_ROUTER_PARAMS = {}
      , unmountAfter
      return arguments
    promise


{Promise}      = require 'es6-promise'
{commonActions} = require './utilities'
sandbox = null

Wrapper = React.createClass

  render: ->
    React.createElement(@props._wrapped_component,
      _.extend(_.omit(@props, '_wrapped_component'), ref: 'element')
