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

Find out if we can use a directive rather than a component #2

Open
SachaZvetelman opened this issue Aug 25, 2019 · 0 comments
Open
Labels
spike Something needs to be explored

Comments

@SachaZvetelman
Copy link
Owner

At the moment, we're using a component to provide the connection-aware functionality. Ideally, it should be a directive.

However, I haven't been able to make the directive work in a similar way to v-if (i.e. do not render the DOM element at all if the conditions are not matched). This is important to avoid loading unnecessary resources.

This person is having a similar problem: https://forum.vuejs.org/t/custom-v-if-directive/63763

@SachaZvetelman SachaZvetelman added the spike Something needs to be explored label Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spike Something needs to be explored
Projects
None yet
Development

No branches or pull requests

1 participant