-
Notifications
You must be signed in to change notification settings - Fork 33
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
using Multiple Namespaced Helpers in the same component #49
Comments
Use the namespaced helper twice. |
will that not conflict each other. for instance,
so when I call |
In JS you can choose between: const { a as b } = getB() Or const a = getB().a; Or const mapperA = getMapper("a") Choose your favorite. |
Would be nice to have "in-place" namespaces, similar to what happens with import { useGetters } from 'vuex-composition-helpers'
export default {
setup() {
const { one, two } = useGetters('my/long/name/space', ['one', 'two'])
const { uno, dos } = useGetters('my/other/thing', ['uno', 'dos'])
return { one, two, uno, dos }
}
} |
@nolde as you can see in the source code, the global functions are passing If you like to create an improvement that will pass the namespace to the global functions, you're welcome, just make sure all the tests will pass :) |
How can I use multiple namespaced helpers in a single component?
The text was updated successfully, but these errors were encountered: