chakra-ui / ark

Ark UI is a headless UI library with over 45+ components designed to build scalable Design Systems that works for a wide range of JS frameworks.
https://ark-ui.com
MIT License
3.8k stars 109 forks source link

fix(react): fix useLayoutEffect() to useSafeLayoutEffect() #2978

Closed Happa8 closed 1 month ago

Happa8 commented 1 month ago

Current useFieldset() uses useLayoutEffect(), but useLayoutEffect() occurs warning in SSR. In useField(), this problem is already fixed as using useSafeLayoutEffect().

So I tried to fix useFieldset() as change useEffect() to useLayoutEffect().

Closes #2977 .

vercel[bot] commented 1 month ago

@Happa8 is attempting to deploy a commit to the Chakra UI Team on Vercel.

A member of the Team first needs to authorize it.