chakra-ui-docs icon indicating copy to clipboard operation
chakra-ui-docs copied to clipboard

useDimensions deprecated, useSize update

Open vjanovec opened this issue 3 years ago • 6 comments

Subject

Hooks

Description

useDimensions is marked as deprecated in the new version. It is replaced by useSize hook instead for which documentation is missing. Also other features/values provided by useDimensions is no longer available by useSize.

vjanovec avatar Oct 25 '22 21:10 vjanovec

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Jan 08 '23 03:01 stale[bot]

Hey @vjanovec, thank you for creating this issue! 💖 This can be worked on since it is a valid issue, the current documentation for useDimension should be updated with useSize.

aacevski avatar Jan 08 '23 17:01 aacevski

@aacevski , I'd like to take a stab at this one if it isn't already being worked! Is the preference to create a separate page for useSize and update the useDimension page to show it has been depreciated?

CaarnHeir avatar Apr 23 '23 14:04 CaarnHeir

Hey @CaarnHeir, thanks for taking interest in this! The best would be to update the useDimension page so it's called useSize. No need to show it's deprecated since in the code it is marked as deprecated. Thanks a lot again!

aacevski avatar Apr 23 '23 19:04 aacevski

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Jun 18 '23 07:06 stale[bot]

This is still a relevant issue and the documentation needs update

standuprey avatar Dec 14 '23 22:12 standuprey