Difference between eachComponentData and eachComponentDataAsync

オープン
#292 コメント 1 件 リアクション 1 件 担当者 1 名 GitHub で見る

@jeriah-formio がすでに取り組んでいます。

2026年2月11日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
TypeScript
スター
15
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

formio/core のほかの issue

formio/core の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。