-
Notifications
You must be signed in to change notification settings - Fork 1
feat: create a hook useOffers() to simply get offers in a react app #987
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #987 +/- ##
=======================================
Coverage 90.98% 90.98%
=======================================
Files 176 176
Lines 7190 7190
Branches 1322 1322
=======================================
Hits 6542 6542
Misses 648 648
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@levalleux-ludo I've opened a new pull request, #990, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
|
Description
Added
useOffershook to simplify querying offers in React applications using the Boson Protocol SDK.Implementation:
useOffershook that wrapsuseCoreSdkandreact-queryfor declarative offer fetchingCoreSdkConfig, query variables, and react-query optionsDocumentation:
use-with-react.mdshowing how to fetch and display offers in a table componentwithQueryClientProviderHOCHow to test
import { hooks } from "@bosonprotocol/react-kit"💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.