Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

feat: ClientOnly component #542

Merged
merged 14 commits into from
Oct 18, 2022
Merged

feat: ClientOnly component #542

merged 14 commits into from
Oct 18, 2022

Conversation

luhc228
Copy link
Member

@luhc228 luhc228 commented Sep 21, 2022

@vercel
Copy link

vercel bot commented Sep 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ice-v3 ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 10:10AM (UTC)

@ClarkXia
Copy link
Collaborator

记录下代码移除的问题

@luhc228 luhc228 changed the title Feat: BrowserOnly component Feat: Client component Oct 14, 2022
wssgcg1213
wssgcg1213 previously approved these changes Oct 14, 2022
@luhc228 luhc228 changed the title Feat: Client component feat: Client component Oct 14, 2022
if (mounted) {
if (
typeof children !== 'function' &&
process.env.NODE_ENV === 'development'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

像这种 DEV 阶段的判断, 能不能统一成内部定义的方式, 而不是像 process.env.NODE_ENV === 'development' 这样的由 Node.js 习惯衍生而来的判断方式

@luhc228 luhc228 changed the title feat: Client component feat: ClientOnly component Oct 18, 2022
@luhc228 luhc228 merged commit 18f54ec into release-next Oct 18, 2022
@luhc228 luhc228 deleted the feat/BrowserOnly-component branch October 18, 2022 05:54
@ClarkXia ClarkXia mentioned this pull request Oct 27, 2022
16 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants