-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
🔧 bsx/snek offers composition api #6633
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request involves a modification in 'Offer' functionality of an application and makes substantial changes in the 'MyOffer.vue' and 'OffersUserTable.vue' files. It primarily focuses on migrating from employing mixins for shared functionality towards using the composable approach in Vue.js codebase. In 'MyOffer.vue', it replaces the older mixins with Vue Composition API logic, using functions including 'useMetaTransaction', 'useNuxtApp', 'usePrefix', and 'useAuth'. It also appears to modify the 'fetchMyOffers' function to make use of the Apollo client for querying data. Regarding 'OffersUserTable.vue', this patch manages to replace the mixins with 'useMetaTransaction', 'usePrefix', 'useAuth' and 'useNuxtApp'. It also restructures the 'withdrawOffer' function to use Vue Composition API. Additionally, it deletes the redundant 'offerMixin.ts' file that earlier defined shared mixin functionality across components. These changes offer improved code readability and maintainability by using the composable pattern rather than mixins. |
Reviewpad Report
|
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.
Otherwise LGTM
components/bsx/Offer/MyOffer.vue
Outdated
if (targetAddress.value) { | ||
// $apollo.addSmartQuery<OfferResponse>('offers', { | ||
// client: client.value, | ||
// query: acceptableOfferByCurrentOwner, | ||
// variables: { id: targetAddress.value }, | ||
// manual: true, | ||
// result: ({ data }) => setResponse(data), | ||
// pollInterval: 10000, | ||
// }) |
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.
how do you manage refreshing?
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.
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.
GalleryItem should be a separate data island
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.
Code Climate has analyzed commit 470fa10 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed!
|
note: I didn't test all features (looks like doesn't work on beta)