-
Notifications
You must be signed in to change notification settings - Fork 21
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: migrate location-provider component to vue 2.7 #1421
refactor: migrate location-provider component to vue 2.7 #1421
Conversation
export default defineComponent({ | ||
name: 'LocationProvider', | ||
props: { | ||
location: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add docs
/** | ||
* The {@link FeatureLocation} to provide. | ||
* | ||
* @public | ||
*/ | ||
provide('location', locationFeature); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need docs, the prop above does.
} | ||
}, | ||
setup(props, { slots }) { | ||
const locationFeature = toRef(props, 'location'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think calling it just location
works well here. Also, the name indicates something that is a feature about locations, not the location of a feature. The type is FeatureLocation
so, if you want to keep the feature
part, the name should be featureLocation
.
EMP-3541
Motivation and context
For the vue 3 migration we need to migrate components to 2.7
Type of change
What is the destination branch of this PR?
Main
How has this been tested?
Follow the docs in the component to tests that the feature still works correctly