Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef6b888

Browse filesBrowse files
committed
add a note about custom directives
1 parent 2b9c23b commit ef6b888
Copy full SHA for ef6b888

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

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

Copy file name to clipboardExpand all lines: active-rfcs/0000-dynamic-directive-arguments.md
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.