-
Notifications
You must be signed in to change notification settings - Fork 90
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
Async await guide #435
Async await guide #435
Conversation
guides/migrations/async-await.md
Outdated
--- | ||
{% raw %} | ||
|
||
If you migrate to `"@ember/test-helpers"` you should take care to update all your "actions" usages to leaverage `async`/`await` syntax. |
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.
If you migrate to "@ember/test-helpers"
[,] you should take care to update all your "actions" usages to leaverage leverage async
/await
syntax.
guides/migrations/async-await.md
Outdated
**Bad** | ||
```js | ||
export default { | ||
scope, |
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 find including this unreferenced scope
here potentially confusing.
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.
This is not only confusing, it's also wrong. Will fix
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.
one last fix :)
guides/migrations/async-await.md
Outdated
--- | ||
{% raw %} | ||
|
||
When migrate to use `"@ember/test-helpers"`, you should take care to update all your "actions" usages to leverage `async`/`await` syntax. |
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.
When migrating
fc3fd43
to
ca6b0a8
Compare
Just updated per @mistahenry feedback. Also reverted moving of existing migration guides to a separate folder cause it could lead to a links breakage for the previous guide versions. |
Looks good to me now |
Sharing to track progress on the async/await migration guide.
In addition to the new page It also moves native-events mode page and upgrade instructions from v0 under "migrations/" directory for grouping purposes. Maybe we need a dedicated migrations section in the guides.abondoned it since moving of files would break navigation for the previous versions of guidesOne more point to note, we might want to include https://github.com/ro0gr/ember-page-object-codemod to the async/await migration guide. I don't think it's 100% proof solution, however it can be a useful starting point for migration. Tested it here chrislopresto/ember-freestyle#184