-
Notifications
You must be signed in to change notification settings - Fork 8
add useResolveDeweb hook #548
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new useResolveDeweb
React hook that resolves DeWeb URLs using the massa-web3 library. The hook provides functionality to convert massa.network domain URLs to their resolved counterparts with proper loading states and error handling.
- Adds
useResolveDeweb
hook with URL resolution capabilities and state management - Creates a
extractMNSUrl
utility function to parse massa.network URLs - Refactors the export structure to use a centralized hooks index file
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/lib/massa-react/index.ts | Consolidated exports to use hooks index file |
src/lib/massa-react/hooks/useResolveDeweb.ts | New hook implementation with URL resolution logic |
src/lib/massa-react/hooks/useResolveDeweb.spec.ts | Comprehensive test suite for the extractMNSUrl function |
src/lib/massa-react/hooks/index.ts | Centralized exports for all hooks |
.eslintrc.cjs | Disabled indent rule |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.