Skip to content

Commit

Permalink
fix: replace call to broken jsonplaceholder with a static text
Browse files Browse the repository at this point in the history
  • Loading branch information
Mor Kadosh committed May 21, 2024
1 parent b2e01f4 commit d11b4cc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>((r) => setTimeout(() => r(), 1000));
return json.title;
await new Promise<void>((r) => setTimeout(() => r(), 2000));
return 'Lorem Ipsum';
}

@customElement('my-element')
Expand Down

0 comments on commit d11b4cc

Please sign in to comment.