]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
feat(runtime-core): allow inject() in custom directives linusborg/feat-set-currenInstance-for-dirs-5002 5036/head
authorThorsten Luenborg <t.luenborg@googlemail.com>
Sat, 4 Dec 2021 11:45:37 +0000 (12:45 +0100)
committerThorsten Luenborg <t.luenborg@googlemail.com>
Sat, 4 Dec 2021 11:45:37 +0000 (12:45 +0100)
commit0945dbe409acf868ea428f7483dbfb0ef09c8894
treea66c3c94df13fe9b87498b3429d93d4d72623f8f
parent2d4f4554349db6b07027d0c626f56c48d0233f67
feat(runtime-core): allow inject() in custom directives

Set currentInstance before hook calls

close: #5002
packages/runtime-core/__tests__/directives.spec.ts
packages/runtime-core/src/directives.ts