Skip to content

Commit

Permalink
Merge pull request #2437 from habx/fix/subscription
Browse files Browse the repository at this point in the history
APP-33340: fix(useWindow): return subscription
  • Loading branch information
habxtech committed Oct 28, 2022
2 parents 4bb21ae + 9e0a96b commit a940924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useWindowSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const useListener = () => {
}
return
}
subscription()
return subscription()
}, []) // eslint-disable-line react-hooks/exhaustive-deps
}

Expand Down

0 comments on commit a940924

Please sign in to comment.