Skip to content

feat: Add local loading state support#8

Merged
HichemTab-tech merged 3 commits intomasterfrom
add-local-loading
Jan 1, 2026
Merged

feat: Add local loading state support#8
HichemTab-tech merged 3 commits intomasterfrom
add-local-loading

Conversation

@HichemTab-tech
Copy link
Copy Markdown
Owner

Description

This PR introduces useCreateLocalLoading, a hook that creates a loading state tied to a component's lifecycle (like useState). The state is automatically destroyed when the component unmounts.

Changes

  • Added useCreateLocalLoading hook.
  • Added destroy() method to loading instances to handle cleanup.
  • Included unit tests and updated documentation.

@HichemTab-tech HichemTab-tech merged commit 7e04dee into master Jan 1, 2026
2 checks passed
@HichemTab-tech HichemTab-tech deleted the add-local-loading branch January 1, 2026 20:20
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