didi / didi/LogicFlow

[Bug Report]: properties内存在动态属性, 上一步事件redo()失效

Open
#1,974 0 comments 0 reactions 1 assignee Claimed by @DymoneLewis View on GitHub
core: node status: todo type:bug
Dominant language
TypeScript
Stars
11.7k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### 发生了什么?

![image](https://github.com/user-attachments/assets/0d1b1654-97a1-486b-a88b-3f05ae56410b)

![image](https://github.com/user-attachments/assets/6b906c58-11fb-4126-a9db-ce45b5ee3b68)
拖动两个一样的节点,
如果 properties内的属性一致,(点击上一步后下一步是有效的),
但是properties内某个属性不一致(下一步是失效的)知道是否和源码中的 add()深拷贝是否有关
[https://github.com/didi/LogicFlow/blob/master/packages/core/src/history/index.ts](url)
`
if (!isEqual(this.curData, data)) {
this.redos = []
}
`

### logicflow/core版本

2.0.6

### logicflow/extension版本

2.0.10

### logicflow/engine版本

-

### 浏览器&环境

Chrome

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.