Skip to content

Difference between eachComponentData and eachComponentDataAsync #292

Description

@tkalmar

Describe the bug
eachComponentData behaves different from eachComponentDataAsync
https://github.com/formio/core/blob/main/src/utils/formUtil/eachComponentData.ts#L113
vs.
https://github.com/formio/core/blob/main/src/utils/formUtil/eachComponentDataAsync.ts#L108

in the async case less components are visited (especially inside grids

Version/Branch
Main branch

To Reproduce
Steps to reproduce the behavior:

  1. Write a custom processor
  2. log components
  3. Use form with empty datagrid
  4. process() differs in the log output compared to processSync()

Expected behavior
The same components are visited.

Screenshots

Additional context
I expected this two methods to behave similar, but the async version visits less components than the sync variant. Is this behaviour intended? At least i expect that processors should visit the same components in both cases

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions