Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
cpf23333 wants to merge 1 commit into didi:master
base: master
Choose a base branch
Loading
from cpf23333:master

Conversation

@cpf23333
Copy link
Contributor

@cpf23333 cpf23333 commented Sep 7, 2025

如果使用Adapter插件的话,render函数会收到的的数据的类型或结构不一定和logicflow自身的重合,如果把这个空对象传给render函数,render函数再传给adapterIn函数,不能保证可以正确处理

常见的触发场景为单独调用clearData或调用destroy方法,destroy内部调用clearData

另外,sites/docs和example内都在直接调用render({}),不知是否需要修改,以及adapterIn函数文档是否需要提及一下这个隐患

DymoneLewis reacted with thumbs up emoji
Copy link

changeset-bot bot commented Sep 7, 2025

⚠️ 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

Copy link
Collaborator

感谢你的贡献~
这边看一下哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /