New
- Custom directives now get a new hook:
inserted
, which will be called when the bound element has been inserted into its parent node. (Note this only guarantees parent node presence but not in-document) - SSR hydration now allows the client to hydrate a server-rendered node when it has no children. (Previously it would throw an error and bail out with a full re-render) This allows the server to render a static "app shell" and let the client pick it up.
Fixed
- Reverted custom directive
bind
call timing due to it leading to incorrectv-show
property switch timing during initial render. - #3556 fix v-on patching for cloned slot nodes
- #3559 remove unnecessary appear check in
v-show
- #3595 fix incorrect duplicate slot warning when they are under
v-if
/v-else
- #3611 fix
v-for
patching error by keying nested children by default