Is custom directive works in vapor mode? #14426
-
|
I wrote sample custom directive, it works ok in usual app. it refers to this: for (const [dir, value, argument, modifiers] of dirs) if (dir) { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Vapor mode directives are written differently: https://github.com/vuejs/core/blob/minor/CHANGELOG.md#feature-compatibility-1 (search for VaporDirective) |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mblandr! Working with Vue reactivity system and compilers can sometimes present interesting edge cases. A few quick things to consider regarding this topic:
I highly recommend checking out the Vue DevTools extension to inspect the component tree and verify if the state is updating as expected. Let me know if you want to dig deeper into the specific component logic. Hope this points you in the right direction! Let me know how it goes. Happy coding! |
Beta Was this translation helpful? Give feedback.
Vapor mode directives are written differently: https://github.com/vuejs/core/blob/minor/CHANGELOG.md#feature-compatibility-1 (search for VaporDirective)