Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useResizeObserver: Add ref parameter to the hook itself. #2

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

Gautam-Arora24
Copy link
Owner

@Gautam-Arora24 Gautam-Arora24 commented Aug 28, 2021

The following code solves #1 by adding the ref parameter in the hook itself. Also, changed the README.md file accordingly.

Fixes: #1
Signed-off-by: Gautam Arora gautamarora6248@gmail.com

Signed-off-by: Gautam Arora <gautamarora6248@gmail.com>
@Gautam-Arora24 Gautam-Arora24 merged commit 0fd42ca into master Aug 28, 2021
Repository owner deleted a comment from allcontributors bot Aug 28, 2021
@Gautam-Arora24
Copy link
Owner Author

@all-contributors Please add @Gautam-Arora24 for code.

@allcontributors
Copy link
Contributor

@Gautam-Arora24

I've put up a pull request to add @Gautam-Arora24! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the hook self dependent by removing the ref parameter.
1 participant