Skip to content

Extract shared/hooks-preact#1106

Open
german664 wants to merge 1 commit intogroup/nx-migration-phase-1from
chore/create-preact-hooks-package
Open

Extract shared/hooks-preact#1106
german664 wants to merge 1 commit intogroup/nx-migration-phase-1from
chore/create-preact-hooks-package

Conversation

@german664
Copy link
Copy Markdown
Contributor

Summary

Extract reusable Preact hooks into packages/shared/hooks-preact.

Fixed issue: IEX-2470

@german664 german664 self-assigned this Apr 16, 2026
@german664 german664 requested a review from a team as a code owner April 16, 2026 09:43
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request extracts Preact-specific hooks into a new shared package, @integration-components/hooks-preact, and refactors existing hooks to re-export from this package. Feedback identifies a typo in an ARIA attribute and suggests performance optimizations by replacing object spreading in loops and reducers with direct mutation. Additionally, it is recommended to use style.setProperty instead of setAttribute for more efficient and non-destructive style updates.

Comment thread packages/shared/hooks-preact/src/useComponentHeadingElement.ts
Comment thread packages/shared/hooks-preact/src/form/wizard/useWizardForm.ts
Comment thread packages/shared/hooks-preact/src/element/usePopoverPositioner.ts
Comment thread packages/shared/hooks-preact/src/useTableColumns.ts
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.

1 participant