isLoading set to false
This commit is contained in:
@ -50,7 +50,7 @@ const useAsync = (fn, options = {}) => {
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const handleSubmit = (args) => { // args {foo: bar}
|
const handleSubmit = (args) => { // args { foo: bar }
|
||||||
const url = "https://jsonplaceholder.typicode.com/todos"
|
const url = "https://jsonplaceholder.typicode.com/todos"
|
||||||
return fetch(url).then(response => response.json())
|
return fetch(url).then(response => response.json())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user