Skip to content

feat(hooks): organize custom hooks into dedicated directory structure #1098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aditya-PS-05
Copy link

This PR fixes #816

  • Yes, I signed my commits.

Summary

Organizes all custom hooks into a dedicated src/hooks/ directory.

  • Created src/hooks/ directory structure:

    • data/ - Data-related hooks (useResourceCleanData, useRoomActivity)
    • ui/ - UI-related hooks (useNotification, useWindowSize)
    • utils/ - Utility hooks (useDebounce, useLocalStorage, usePreventPageLeave, useTimeout, useToggle)
    • workspace/ - Workspace-related hooks (useDesignAssignment, useEnvironmentAssignment, useTeamAssignment, useViewsAssignment)
  • Moved 12+ custom hooks to organized categories

  • Added centralized exports through index.ts files

  • Added README.md for hooks documentation

Signed-off-by: Aditya-PS-05 <adityapratapsjnhh7654@gmail.com>
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.

[Feature] Add all custom hooks created to reuse across projects
1 participant