fix: Ref return type in useElementSize and useResizeObserver is wrong #5759
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #5752
Description:
fix: Ref return type in useElementSize and useResizeObserver is wrong
Issue Details:
fixes and sugested changes: #5752
Changes:
![Screenshot 2024-02-13 at 3 42 17 PM](https://private-user-images.githubusercontent.com/134603758/304370684-3a9dc779-0e53-42e4-940a-74c11d822f8f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDM5NDgsIm5iZiI6MTczODk0MzY0OCwicGF0aCI6Ii8xMzQ2MDM3NTgvMzA0MzcwNjg0LTNhOWRjNzc5LTBlNTMtNDJlNC05NDBhLTc0YzExZDgyMmY4Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxNTU0MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NWFjMmYxMDBkMDBjNmRmYmNmMDhhNDk0MmE1OTI5ZjNkODFjMWMwYjQ5ZDJiZDU1N2QyZTliZDc1MzYzNmFlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.IOz6M9OnTsOmS1m3oxXdSHqaNkYjD9ydNy9YNNY2dPY)
Slight change applied to ref type - and all tests are passed
Checklist:
Code follows the project's coding guidelines.