You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use useFirstPaint to control animation in Checkbox and Radio (#2744)
* new useIsFirstRender
useIsFirstRender rewritten and used in Checkbox and Radio
* use isomorphic layout effect in useIsFirstRender
* use ref in useIsFirstRender instead of state
* refactor isFirstRender
* rename useIsFirstRender to useIsAfterFirstPaint
* replace useIsAfterFirstPaint with useFirstPaint hook
add story
* add description to story
* clean up
* clean up
* update useFirstPaint story
* use callback in useFirstPaint
* fix example code
* update Checkbox and Radio after last changes
0 commit comments