-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: clearData函数内使用renderRawData替代render以绕开自定义Adapter插件的adapterIn方法 #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
⚠️ No Changeset found
Latest commit: 9664bbd
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
感谢你的贡献~
这边看一下哈
如果使用Adapter插件的话,render函数会收到的的数据的类型或结构不一定和logicflow自身的重合,如果把这个空对象传给render函数,render函数再传给adapterIn函数,不能保证可以正确处理
常见的触发场景为单独调用clearData或调用destroy方法,destroy内部调用clearData
另外,sites/docs和example内都在直接调用render({}),不知是否需要修改,以及adapterIn函数文档是否需要提及一下这个隐患