Skip to content

Commit

Permalink
Remove fake loading time
Browse files Browse the repository at this point in the history
We have latency from Firebase now.
  • Loading branch information
Andrei Picus committed Nov 19, 2019
1 parent 7413a9a commit d29b70a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export class TitleService extends ResourceContainer<TitleData> implements ITitle
const data: { title: string } = await fetch(`${this.apiBase}/api/demo`)
.then(r => r.json());

// Add a loading effect client side.
if (typeof window !== 'undefined') {
await new Promise(resolve => setTimeout(resolve, 250));
}

this.setState({
loading: false,
data
Expand Down

1 comment on commit d29b70a

@vercel
Copy link

@vercel vercel bot commented on d29b70a Nov 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.