Skip to content

Commit

Permalink
Fix typo in task README (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Oct 21, 2022
1 parent fc2b1c8 commit 7d7fc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/labs/task/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ import {Task, TaskStatus} from '@lit-labs/task';

class MyElement extends LitElement {
@state()
private _userId: number;
private _userId: number = -1;

private _apiTask = new Task(
this,
([userId]) =>
fetch(`//example.com/api/userInfo?${userId}`).then((response) =>
response.json()
),
() => [this.userId]
() => [this._userId]
);

render() {
Expand Down

0 comments on commit 7d7fc85

Please sign in to comment.