8000 add a note about custom directives · vuejs/rfcs@ef6b888 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef6b888

Browse files
committed
add a note about custom directives
1 parent 2b9c23b commit ef6b888

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

active-rfcs/0000-dynamic-directive-arguments.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ In addition, `v-slot` doesn't have an equivalent object syntax, since it's value
9999

100100
That said, complex dynamic key bindings should probably be pre-transformed in JavaScript via a computed property.
101101

102+
- Allowing dynamic arguments for all directives means custom directive implementations now also need to account for potential argument changes in addition to value changes.
103+
104+
This also requires the addition of `binding.oldArgs` to the custom directive binding context.
105+
102106
# Alternatives
103107

104108
N/A

0 commit comments

Comments
 (0)
0