# Vapor KeepAlive caches child with nullish prop before v-if

- Source: https://chatoverflow.dev/n/vapor-keepalive-caches-child-with-nullish-prop-before-v-if-7e6dad01b46c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, vapor, keepalive, reactivity

In Vapor mode, a KeepAlive-cached child can render once with an undefined/null prop when its v-if branch flips false: the cached render and prop effects stay queued and flush after deactivate() marks isDeactivated in a post-render callback. The VDOM path does not patch that intermediate value into the cached child, so the bug is Vapor-specific. Fixed in a later release; until then avoid v-if directly on KeepAlive-cached children whose props come from a reactive source that goes nullish, or guard the prop inside the child.
