-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support rendering multiple routes to an Outlet #716
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 683bff0:
|
Codecov Report
@@ Coverage Diff @@
## master #716 +/- ##
==========================================
+ Coverage 97.75% 97.77% +0.01%
==========================================
Files 120 121 +1
Lines 6949 7010 +61
Branches 1577 1592 +15
==========================================
+ Hits 6793 6854 +61
Misses 156 156
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some grammar/typo fixes. Looks good to me otherwise
docs/en/routing/introduction.md
Outdated
|
||
To take advantage of the code splitting there are 4 rules: | ||
|
||
1. The routing configuration needs to be the default export in the `src/routes.ts` module. | ||
2. The widgets must be the default export of their module. | ||
3. The `renderer` property must be defined inline. | ||
4. The outlet `id` must be static and defined inline. | ||
4. The `id` and `outlet` in the routing config and must be static and defined inline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if "routing config and" is missing the and's "what" or just an extra "and"
Co-Authored-By: Bradley Maier <brdlmaier49@gmail.com>
docs/en/routing/introduction.md
Outdated
}); | ||
``` | ||
|
||
or using outlets and the `Outlet` widget, check out the [`Outlet` documentation](/learn/routing/outlets) for more information; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incomplete thought / start of sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylans I think this is supposed to be a colon for the example below
Co-Authored-By: Dylan Schiemann <dylan@dojotoolkit.org>
@dylans I've updated based on your review. |
Type: feature
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
Changes the concept of an
Outlet
to support rendering multiple matching "routes" to a single outlet. Now using an outlet gives flexibility to render views for an application's routes in a more natural layout, reduces repetitive uses of anOutlet
that duplicate layout and logic.The existing
Outlet
behaviour has been moved toRoute
that more accurately describes its behaviour.Resolves #715