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.
1 parent 18419ed commit fb937bbCopy full SHA for fb937bb
packages/lit-dev-content/samples/examples/directive-until/my-element.ts
@@ -3,11 +3,8 @@ import {customElement, state} from 'lit/decorators.js';
3
import {until} from 'lit/directives/until.js';
4
5
const fetchData = async () => {
6
- const response = await fetch('https://jsonplaceholder.typicode.com/todos/2');
7
- const json = await response.json();
8
- // Add some delay for demo purposes
9
- await new Promise<void>((r) => setTimeout(() => r(), 1000));
10
- return json.title;
+ await new Promise<void>((r) => setTimeout(() => r(), 2000));
+ return 'Lorem Ipsum';
11
}
12
13
@customElement('my-element')
0 commit comments