Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add combineAppRoutes util #15

Merged
merged 1 commit into from Feb 21, 2019
Merged

Add combineAppRoutes util #15

merged 1 commit into from Feb 21, 2019

Conversation

ItsJonQ
Copy link
Contributor

@ItsJonQ ItsJonQ commented Feb 21, 2019

Add combineAppRoutes util

This update adds a new combineAppRoutes utility function. This enables Marionette
apps to render a React Router powered component/app. It works by combining React
routes and Marionette Routes to a flat object for Marionette's appRouter.

The trick is to have the React routes end with *notFound, which kind of functions
like a wild card match.

It's an unfortunate thing, but it's the only thing that seems to work.

This update adds a new combineAppRoutes utility function. This enables Marionette
apps to render a React Router powered component/app. It works by combining React
routes and Marionette Routes to a flat object for Marionette's appRouter.

The trick is to have the React routes end with `*notFound`, which kind of functions
like a wild card match.

It's an unfortunate thing, but it's the only thing that seems to work.
@ItsJonQ ItsJonQ added the enhancement New feature or request label Feb 21, 2019
@ItsJonQ ItsJonQ self-assigned this Feb 21, 2019
@coveralls
Copy link

Pull Request Test Coverage Report for Build 188

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 173: 0.0%
Covered Lines: 196
Relevant Lines: 196

💛 - Coveralls

@knicklabs knicklabs merged commit 6af849b into master Feb 21, 2019
@knicklabs knicklabs deleted the route-bridge branch February 21, 2019 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants