-
Notifications
You must be signed in to change notification settings - Fork 185
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
[examples] Add async task playground example #1179
Conversation
A live preview of this PR will be available at the URL(s) below. https://pr1179-cd4bc80---lit-dev-5ftespv5na-uc.a.run.app/ |
packages/lit-dev-content/samples/examples/async-task/npm-info.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/examples/async-task/npm-info.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/examples/async-task/npm-info.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/examples/async-task/npm-info.ts
Outdated
Show resolved
Hide resolved
- Split out npm helpers to separate file - Find npm logo svg from web - Reorder some things
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.
🎉
@@ -0,0 +1,77 @@ | |||
import {LitElement, css, html} from 'lit'; | |||
import {customElement, state} from 'lit/decorators.js'; | |||
import {Task} from '@lit-labs/task'; |
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.
We'll need to update this for graduation. cc @rictic
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.
Played with the demo in the preview & it's extremely nice! Thank you and great example!
Repurposed the existing but hidden async task example to use
@lit-labs/task
.We can add additional examples with future PRs.
direct preview link: https://pr1179-c068b7f---lit-dev-5ftespv5na-uc.a.run.app/playground/#sample=examples/async-task