Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created August 28, 2015 17:58
Show Gist options
  • Select an option

  • Save codedmart/553120105ed1dbde48c3 to your computer and use it in GitHub Desktop.

Select an option

Save codedmart/553120105ed1dbde48c3 to your computer and use it in GitHub Desktop.
// Error: Uncaught Error: Invariant Violation: You cannot nest path "/:username/favorites" inside "/:username"; the parent requires URL parameters
<Route name='user' path='/:username' handler={User}>
<DefaultRoute name='userDesigns' handler={UserDesigns}/>
<Route name='userFavorites' path='/:username/favorites' handler={UserFavorites}/>
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment