-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Unable to import reactiveAbility
from casl/vue
#890
Comments
I has never been a part of public interface. Could you please explain why do you need it? |
For me the usecase is providing abilities to render function when testing the components. |
in this case it's an improvement not a bug. Why cannot you use plugin or provide/inject in tests? |
To be able to provide the ability I need to build it, that's where the reactive ability is needed, to build the ability. |
You don’t need it because it’s hidden inside build ability in any way you like, casl/vue will make it reactive when you provide it. See the code: https://github.com/stalniy/casl/blob/master/packages/casl-vue/src/useAbility.ts#L17 |
Describe the bug
Unable to import
reactiveAbility
To Reproduce
Steps to reproduce the behavior:
Try to import
reactiveAbility
and it will fail as index.js doesn't provide it.Expected behavior
Successful import of
reactiveAbility
CASL Version
@casl/vue
- vEnvironment:
Node 20, Vue 3
The text was updated successfully, but these errors were encountered: