diff --git a/packages/lit-dev-content/samples/examples/directive-until/my-element.ts b/packages/lit-dev-content/samples/examples/directive-until/my-element.ts index 3c50d7b8f..c50451122 100644 --- a/packages/lit-dev-content/samples/examples/directive-until/my-element.ts +++ b/packages/lit-dev-content/samples/examples/directive-until/my-element.ts @@ -3,11 +3,8 @@ import {customElement, state} from 'lit/decorators.js'; import {until} from 'lit/directives/until.js'; const fetchData = async () => { - const response = await fetch('https://jsonplaceholder.typicode.com/todos/2'); - const json = await response.json(); - // Add some delay for demo purposes - await new Promise((r) => setTimeout(() => r(), 1000)); - return json.title; + await new Promise((r) => setTimeout(() => r(), 2000)); + return 'Lorem Ipsum'; } @customElement('my-element')