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(runtime-core): ensure that binding.instance in custom directive hooks has access to exposed properties on closed instances (fix: #5018) #5021

Closed
wants to merge 2 commits into from

Conversation

LinusBorg
Copy link
Member

For closed instances (those crreated with <script setup> or a normal setup function in which expose() has been called), we currently expose a different proxy for i.e. refs.

This proxy provides access to the public instance methods provided by Vue and the explicitly exposed custom properties.

This PR not also exposes this same proxy to custom directives in binding-instance so that custom directives can access exposed properties correctly.

fix: #5018

@LinusBorg
Copy link
Member Author

messed up the branch

@LinusBorg LinusBorg closed this Nov 30, 2021
@LinusBorg LinusBorg deleted the linusborg/fix-exposeproxy-in-cust-dir branch November 30, 2021 09:28
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.

The custom directive is in the production environment, and the function under instance is missing
1 participant