Using v-if with v-slot directive cause unnecessary update hook #6833
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
need guidance
The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.
scope: compiler
scope: slots
Vue version
3.2.40
Link to minimal reproduction
https://sfc.vuejs.org/#eNqNU81u2zAMfhVWOyRBYynddsocp8Mu6wMMu+jixkzs1vqBJDsoDL97KTtNnRYtejEo/nwkP37u2G9redsgW7PU71xlA3gMjc2krpQ1LkAHDvdLMPqfLfKABfSwd0bBjKpm56w/RtnRLxkX8RVRJZNa6p3RPsDONDqgg03Em68WMXIGnc8XsMmgkxooUXtTI6/NYT6j8V5bz6ioX/yKlTTkXYRr8/qydmjCyd3g9TWl9sub1Sp2S8W4H21Gj4DK1oRJL4C0vMm67jxh36eCPEMkbjJYZL/UQJtU+41kwcUN4VuJeYEug/QqSeBuD0ekFZVpx0QIJer4AevMfY0KjlVdw8FAfsyfIElO8AB/Bxwo0eGpo7gcc+CVzImfLdl4gUTllj94o+mSAxXyFPCSrUdyom84ypqMMgTr10I02j4e+M4ocUsx4YiCSmFSGHX7g3/nP1eiqHyY+jl6ldw7c/RE9APBLyfggpwtusShpl3QfdrsTe5Fwzexd01jz57OSwS8qC1qeEJY6msTQOcK6VbjjSTLSAbkviQx5n6g/Y9k/xXtDv/EOe0K/pdP2+12FPFEj6x/BvZ7Mxs=
Steps to reproduce
Open the devtools to see the log messages.
What is expected?
onUpdated shouldn't be called on Comp component.
What is actually happening?
onUpdated is called on both App and Comp.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: