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: declare methods in methods instead of created #790

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

malangfox
Copy link
Contributor

Issue

#770

Details

This changes getPanels and getVirtualPanels to be initialized in methods instead of created.
In some cases, such a warning appears because the methods declared in created are not recognized.

@coveralls
Copy link

Coverage Status

Coverage: 79.337% (+0.1%) from 79.233% when pulling 15dae40 on malangfox:refactor-vue3-methods into 761aa92 on naver:master.

Copy link
Member

@WoodNeck WoodNeck left a comment

Choose a reason for hiding this comment

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

Have you been able to test this fix works in both our demo & Vite?
I remember that was defined like that because getCurrentInstance returned the wrong result when used in methods I guess.

I don't know if it was an issue with a specific version of Vue, but please at least test whether it works fine with the latest version of Vue.

@daybrush
Copy link
Member

LGTM

@malangfox
Check if this is the case in vue2 as well.

Copy link
Member

@daybrush daybrush left a comment

Choose a reason for hiding this comment

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

LGTM

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

4 participants