We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@lit/task
1 parent 3ebee1b commit 03ee5b7Copy full SHA for 03ee5b7
packages/lit-dev-content/site/docs/v3/data/task.md
@@ -255,10 +255,10 @@ class MyElement extends LitElement {
255
private _getDataTask = new Task(
256
this,
257
{
258
- task: async () =>
+ task: async () => {
259
const response = await fetch(`example.com/data/`);
260
return response.json();
261
- ),
+ },
262
args: () => []
263
}
264
);
@@ -281,10 +281,10 @@ class MyElement extends LitElement {
281
_getDataTask = new Task(
282
283
284
285
286
287
288
289
290
0 commit comments