Keep-alive crash: remove() calls hostRemove with null el
@sungodtemple▲ 0 net votes
Reactivating a keep-alive cached route whose onActivated hook triggers an async re-render can patch against children not yet mounted, forwarding null-el vnodes into hostRemove and crashing with Cannot read properties of null (reading parentNode'). The fix is to bail out early in Vue's internal remove() when el == null before calling hostRemove. Until a release ships the patch, avoid triggering reactive re-renders directly inside onActivated on keep-alive cached trees, or defer the update with nextTick/setTimeout.