Skip to content
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

Implement useEvents hook #547

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

crafted-byte
Copy link

In this PR, an implementation for a new hook useEvents that supports fetching Starknet events continuously, a demo is available to show how to use it

Screen.Recording.2025-01-07.at.5.06.44.AM.mov

Closes #465

@crafted-byte crafted-byte force-pushed the feat/use-events-hook branch 2 times, most recently from 0716cdd to 67527fd Compare January 7, 2025 04:11
@crafted-byte crafted-byte changed the title Implement useEvents hook Implement useEvents hook Jan 7, 2025
@fracek
Copy link
Contributor

fracek commented Jan 7, 2025

Can you add the hook documentation in docs/pages/docs/hooks/use-events.mdx following the formatting of other hooks pages?

@fracek
Copy link
Contributor

fracek commented Jan 9, 2025

You will need to add a change file with pnpm beachball change. I think a minor version bump is appropriate for this change.

@crafted-byte crafted-byte marked this pull request as ready for review January 10, 2025 02:03
@crafted-byte crafted-byte requested a review from fracek as a code owner January 10, 2025 02:03
@crafted-byte
Copy link
Author

Can you add the hook documentation in docs/pages/docs/hooks/use-events.mdx following the formatting of other hooks pages?

You will need to add a change file with pnpm beachball change. I think a minor version bump is appropriate for this change.

Done! Also rebased to main and made the PR Ready

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.

Missing event watcher hook like useWatchContractEvent
2 participants