Skip to content

Remove invalid hook usage inside loops in FormSchemaRenderFields#378

Merged
cristian-tamblay merged 2 commits into
developfrom
fix/hooks-usage-in-formschema
Nov 11, 2025
Merged

Remove invalid hook usage inside loops in FormSchemaRenderFields#378
cristian-tamblay merged 2 commits into
developfrom
fix/hooks-usage-in-formschema

Conversation

@Irozuku
Copy link
Copy Markdown
Collaborator

@Irozuku Irozuku commented Nov 11, 2025

This branch fixes a React hooks violation in FormSchemaRenderFields that caused the error "Rendered more hooks than during the previous render".
The issue was due to useMemo being called inside loops and maps.
Replaced these hook calls with plain object definitions to ensure consistent hook order and stable renders.

@cristian-tamblay cristian-tamblay merged commit f2c3d8d into develop Nov 11, 2025
3 checks passed
@cristian-tamblay cristian-tamblay deleted the fix/hooks-usage-in-formschema branch November 11, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants