-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Clean up boot process #10271
Merged
Merged
Clean up boot process #10271
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0fcd12c
Clean up boot process
e01cc46
Legacy -> deprecated method naming
d734119
Removes location test
66ac1b3
More granular control over routing start
d26044e
Implement Application’s `visit()` API
b7629aa
Always resolve the boot promise, even in autoboot
ebfa23d
Introduce fallback registry.
dgeb f0aa387
Create a registry per ApplicationInstance
dgeb 0862c52
Fix module name
dgeb cd499b0
Move validation of `fullName` parsing to `_parseName`.
dgeb be6a683
Use imported `run`
1d08c84
Add feature flag for visit API
c8ed6cb
Add test for disabling autoboot
9fb11dd
Adds simple visit() test
f578a04
Fix feature flagged autoboot
tomdale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Fix feature flagged autoboot
- Loading branch information
commit f578a04740d91bb03d2520b537ccbcc344a157ae
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
i know several people who want to optionally begin before DOMReady, any thoughts on how to facilitate that officially?
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.
Would be great to not wait for DOM ready, especially when you stream a chunked encoded index.html. We optimize by streaming down JSON snippets to the index.html but we currently can't boot till that connection closes because the document is not complete. Would be great to hide Ember boot underneath the initial connection.
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.
Yes, this is absolutely one of the goals of the refactor: to give developers fine-grained control over the boot process. While I would prefer to preserve the current DOM ready semantics, our goal is that developers can prevent the default autobooting behavior, and use the same API as the FastBoot harness to control how the app is booted.