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

fix(vue): presence onExitComplete & types #1939

Merged
merged 4 commits into from Jan 2, 2024

Conversation

iamdin
Copy link
Contributor

@iamdin iamdin commented Dec 30, 2023

  • fix onExitComplete cannot call correctly
  • simplify the define of props
  • fix type use toValue

Copy link

vercel bot commented Dec 30, 2023

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

default: undefined,
},
},
emits,
Copy link
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
Collaborator

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

packages/frameworks/vue/src/presence/use-presence.ts Outdated Show resolved Hide resolved
default: undefined,
},
},
emits,
Copy link
Collaborator

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

packages/frameworks/vue/src/presence/presence.props.ts Outdated Show resolved Hide resolved
@Omikorin Omikorin changed the title fix: fix onExitComplete & types fix(vue): presence onExitComplete & types Dec 31, 2023
@Omikorin
Copy link
Collaborator

Omikorin commented Jan 2, 2024

@iamdin I've reverted what should be reverted.

Thanks!

@Omikorin Omikorin merged commit 454dd9c into chakra-ui:main Jan 2, 2024
6 of 7 checks passed
@iamdin
Copy link
Contributor Author

iamdin commented Jan 2, 2024

@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.

None yet

2 participants