Skip to content

[01727] Add barrel export to hooks directory#3052

Merged
nielsbosma merged 2 commits intomainfrom
plan-01727-Ivy-Framework
Apr 4, 2026
Merged

[01727] Add barrel export to hooks directory#3052
nielsbosma merged 2 commits intomainfrom
plan-01727-Ivy-Framework

Conversation

@nielsbosma
Copy link
Copy Markdown
Contributor

Summary

Changes

Added a barrel export file (index.ts) to the src/frontend/src/hooks/ directory that re-exports all public APIs from the 8 existing hook files. This enables cleaner imports like import { useScrollShadow, useDebounce } from "@/hooks" instead of individual file imports.

API Changes

  • New file: src/frontend/src/hooks/index.ts — barrel export re-exporting all named exports from use-auto-scroll, use-backend, use-debounce, use-error-sheet, use-focus-management, use-mobile, use-scroll-shadow, and use-toast. Uses explicit named exports for use-error-sheet and use-toast to avoid duplicate reducer export conflict.

Files Modified

  • Added: src/frontend/src/hooks/index.ts — barrel export file

Commits

  • 72676f4 - [01727] Fix duplicate reducer export in barrel file
  • b89b462 - [01727] Add barrel export to hooks directory

@nielsbosma nielsbosma merged commit 7dbf377 into main Apr 4, 2026
11 checks passed
@nielsbosma nielsbosma deleted the plan-01727-Ivy-Framework branch April 4, 2026 19:05
@artem-ivy-ai
Copy link
Copy Markdown
Collaborator

Deleted

Staging services have been deleted.

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