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 2faa3e2 commit f7f4258Copy full SHA for f7f4258
example/components/RemoteDataSetExample.js
@@ -15,7 +15,9 @@ export const RemoteDataSetExample = memo(() => {
15
return
16
}
17
setLoading(true)
18
- const response = await fetch('https://jsonplaceholder.typicode.com/posts')
+ const response = await fetch('https://jsonplaceholder.typicode.com/posts').then((data) => new Promise(res => {
19
+ setTimeout(() => res(data), 2000) // imitate of a long response
20
+ }))
21
const items = await response.json()
22
23
const suggestions = items
0 commit comments