Skip to content

fix(vue): presence onExitComplete & types - #1939

Merged
Omikorin merged 4 commits into
chakra-ui:mainfrom
iamdin:fix/vue-presence
Jan 2, 2024
Merged

Omikorin merged 4 commits into
chakra-ui:mainfrom
iamdin:fix/vue-presence

Conversation

@iamdin

@iamdin iamdin commented Dec 30, 2023

Copy link
Copy Markdown
Contributor
  • fix onExitComplete cannot call correctly
  • simplify the define of props
  • fix type use toValue

@vercel

vercel Bot commented Dec 30, 2023

Copy link
Copy Markdown

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

Name Status Preview Updated (UTC)
ark-docs ✅ Ready (Inspect) Visit Preview Jan 2, 2024 3:25pm

Comment thread packages/frameworks/vue/src/presence/use-presence.ts
default: undefined,
},
},
emits,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As we use Function Signature to define component, I don't think we need to declare emit to get the type hint of event, because they already exist in the definition of zag

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good work with cleaning props in the component.

I'm not sure if emits are needed in components

Comment thread packages/frameworks/vue/src/presence/use-presence.ts
default: undefined,
},
},
emits,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good work with cleaning props in the component.

I'm not sure if emits are needed in components

Comment thread packages/frameworks/vue/src/presence/presence.props.ts Outdated
@Omikorin Omikorin changed the title fix: fix onExitComplete & types fix(vue): presence onExitComplete & types Dec 31, 2023
@Omikorin

Omikorin commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

@iamdin I've reverted what should be reverted.

Thanks!

@Omikorin
Omikorin merged commit 454dd9c into chakra-ui:main Jan 2, 2024
@iamdin

iamdin commented Jan 2, 2024

Copy link
Copy Markdown
Contributor Author

@iamdin I've reverted what should be reverted.

Thanks!

Thanks!

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.

2 participants