Skip to content
Permalink
Browse files

Update separating-view-logic.md

fix the example code state
  • Loading branch information...
AlixWang committed Oct 30, 2019
1 parent 9331a96 commit 374429adbd5c083b54806f85020f1856b893c070
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/guide/separating-view-logic.md
@@ -15,7 +15,7 @@ const fetchPerson = async ({ id }, { signal }) => {
}
const Person = ({ id }) => {
const { data, error } = useAsync({ promiseFn: fetchPerson, id })
const state = useAsync({ promiseFn: fetchPerson, id })
return children(state)
}

0 comments on commit 374429a

Please sign in to comment.
You can’t perform that action at this time.