core icon indicating copy to clipboard operation
core copied to clipboard

fix: #10192 When passing a Vnode to the 'is' prop of a <component>, the page does not refresh upon changes in the Vnode

Open zimoua opened this issue 1 year ago • 2 comments

This is a proposal I submitted for bug #10192.

在 minimal reproduction中

The VNode generated by the slot possesses a pathFlag value of 1(TEXT), which, when subjected to a bitwise OR operation with PatchFlags.BAIL (-2), yields PatchFlags.HOISTED (-1). As a consequence, this results in the diff process omitting the update of the VDom. I am uncertain as to the rationale behind employing a bitwise OR operation in this context and am eager to learn if there exists a superior alternative solution.

zimoua avatar Jan 23 '24 14:01 zimoua

I think this may be a duplicate of #8304.

skirtles-code avatar Apr 17 '24 05:04 skirtles-code

I believe this problem has been fixed as of 3.4.28.

skirtles-code avatar Jun 21 '24 23:06 skirtles-code

Thanks for this PR. Closing as the problem has been fixed via https://github.com/vuejs/core/pull/8304.

edison1105 avatar Aug 27 '24 06:08 edison1105