Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(runtime-dom): fix static content re-insertion
fix #5308 The regression was introduced in ed9eb62. In the cached code path, we attempt re-insertion by cloning cached nodes. However if the static fragment was removed as component root, it loses the nodes between start and end because each node was removed individually. Therefore the cached path can only be taken if the fragment has a single node, or it was removed as part of a parent tree so the sibling information is still available.
- Loading branch information