Skip to content

feat(KeepAlive): add pause prop to pause deactivated components - #16426

Open
edison1105 wants to merge 3 commits into
edison/feat/component-scope-pausefrom
edison/feat/keepalive-pause-deactivated
Open

edison1105 wants to merge 3 commits into
edison/feat/component-scope-pausefrom
edison/feat/keepalive-pause-deactivated

Conversation

@edison1105

@edison1105 edison1105 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

close #5386

Adds an opt-in pause prop to KeepAlive (VDOM and Vapor). A deactivated entry is paused with its whole subtree: renders, watch of every flush, watchEffect, bare effect(), v-for rows, slots, directives and the entries of nested KeepAlives. On activation it catches up once, in place. Without pause nothing changes.

@edison1105
edison1105 added this pull request to stack #16419 November 24, 2026 00:49
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc2e45a2-9fff-4266-8369-076830d38f52

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@16426
npm i https://pkg.pr.new/@vue/compiler-core@16426
yarn add https://pkg.pr.new/@vue/compiler-core@16426.tgz

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@16426
npm i https://pkg.pr.new/@vue/compiler-dom@16426
yarn add https://pkg.pr.new/@vue/compiler-dom@16426.tgz

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@16426
npm i https://pkg.pr.new/@vue/compiler-sfc@16426
yarn add https://pkg.pr.new/@vue/compiler-sfc@16426.tgz

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@16426
npm i https://pkg.pr.new/@vue/compiler-ssr@16426
yarn add https://pkg.pr.new/@vue/compiler-ssr@16426.tgz

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@16426
npm i https://pkg.pr.new/@vue/compiler-vapor@16426
yarn add https://pkg.pr.new/@vue/compiler-vapor@16426.tgz

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@16426
npm i https://pkg.pr.new/@vue/reactivity@16426
yarn add https://pkg.pr.new/@vue/reactivity@16426.tgz

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@16426
npm i https://pkg.pr.new/@vue/runtime-core@16426
yarn add https://pkg.pr.new/@vue/runtime-core@16426.tgz

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@16426
npm i https://pkg.pr.new/@vue/runtime-dom@16426
yarn add https://pkg.pr.new/@vue/runtime-dom@16426.tgz

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@16426
npm i https://pkg.pr.new/@vue/runtime-vapor@16426
yarn add https://pkg.pr.new/@vue/runtime-vapor@16426.tgz

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@16426
npm i https://pkg.pr.new/@vue/server-renderer@16426
yarn add https://pkg.pr.new/@vue/server-renderer@16426.tgz

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@16426
npm i https://pkg.pr.new/@vue/shared@16426
yarn add https://pkg.pr.new/@vue/shared@16426.tgz

vue

pnpm add https://pkg.pr.new/vue@16426
npm i https://pkg.pr.new/vue@16426
yarn add https://pkg.pr.new/vue@16426.tgz

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@16426
npm i https://pkg.pr.new/@vue/compat@16426
yarn add https://pkg.pr.new/@vue/compat@16426.tgz

commit: 923dd7b

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.5 kB 30.7 kB 26.9 kB
runtime-dom.global.prod.js 128 kB (+2.11 kB) 47.6 kB (+635 B) 42.6 kB (+547 B)
vue.global.prod.js 188 kB (+2.11 kB) 67.9 kB (+675 B) 60.4 kB (+545 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 56.9 kB (+1.16 kB) 22 kB (+330 B) 20.1 kB (+318 B)
createApp 66.2 kB (+1.18 kB) 25.4 kB (+330 B) 23.1 kB (+316 B)
createApp + vaporInteropPlugin 128 kB (+1.44 kB) 46.5 kB (+390 B) 41.7 kB (+319 B)
createVaporApp 37.3 kB (+1.11 kB) 14.2 kB (+315 B) 13 kB (+286 B)
createSSRApp 71.1 kB (+1.18 kB) 27.4 kB (+332 B) 24.8 kB (+288 B)
createVaporSSRApp 45.5 kB (+1.11 kB) 17.2 kB (+321 B) 15.9 kB (+319 B)
defineCustomElement 72.7 kB (+1.18 kB) 27.4 kB (+328 B) 24.9 kB (+328 B)
defineVaporCustomElement 52.3 kB (+1.11 kB) 19 kB (+328 B) 17.4 kB (+284 B)
overall 84.3 kB (+2.12 kB) 31.8 kB (+685 B) 28.8 kB (+661 B)

@edison1105
edison1105 force-pushed the edison/feat/keepalive-pause-deactivated branch from 82a50b8 to 519dd14 Compare November 24, 2026 02:23
@edison1105 edison1105 changed the title feat(KeepAlive): pause deactivated components feat(KeepAlive): add pause prop to pause deactivated components Nov 24, 2026
@edison1105
edison1105 force-pushed the edison/feat/keepalive-pause-deactivated branch 2 times, most recently from 715aedc to 97a7fd5 Compare November 24, 2026 05:40
@edison1105
edison1105 force-pushed the edison/feat/keepalive-pause-deactivated branch from 97a7fd5 to e2c11b2 Compare November 24, 2026 08:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant