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

refactor: useMergeState instead of effect sync #261

Merged
merged 2 commits into from
Jul 22, 2024
Merged

refactor: useMergeState instead of effect sync #261

merged 2 commits into from
Jul 22, 2024

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Jul 22, 2024

调整使用 useMergeState 来同步获取受控颜色,代替 useEffect 异步同步导致的上层动态调整颜色不生效的协同问题。

Copy link

github-actions bot commented Jul 22, 2024

🎊 PR Preview fdf0a97 has been successfully built and deployed to https://react-component-color-picker-preview-pr-261.surge.sh

🕐 Build time: 81.272s

🤖 By surge-preview

@zombieJ zombieJ merged commit 1c979b4 into master Jul 22, 2024
6 checks passed
@zombieJ zombieJ deleted the simple branch July 22, 2024 09:34
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.

1 participant