I want to avoid rendering elements on the screen based on the user role, Is it possible to create a custom directive 'v-role' that takes a string and based on the user info saved in the store determines if the element should even be rendered?
When looking at the docs and some research online I found that I can create a custom directive that hides the elements, But I want to avoid the rendering of the element instead of rendering it, then hiding it or removing it from the Dom.