Skip to content

Commit

Permalink
Merge f22c000 into 9393f80
Browse files Browse the repository at this point in the history
  • Loading branch information
goiblas committed Sep 2, 2021
2 parents 9393f80 + f22c000 commit 91c10a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useIsMounted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function MyComponent() {
+ const isMounted = useIsMounted()
React.useEffect(() => {
fetchData().then((result) => {
+ if (isMounted) {
+ if (isMounted()) {
setData(result)
+ }
})
Expand Down

0 comments on commit 91c10a1

Please sign in to comment.