apply_patch 可以创建并保留一个符合架构要求的循环 Site 层次结构
作者: hunter3x3-tech创建于 2026年9月29日更新于 2026年9月29日
标签bug
The primary fix should be at the hierarchy mutation boundary, rather than only adding guards to individual consumers. Before accepting any parentId change, verify that the proposed parent is not the node itself and is not reachable from that node through the existing hierarchy. A small helper could look conceptually like this:
内容来源: pascalorg/editor