-
-
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
Refactor: CreateCollection #6968
Conversation
SUCCESS @stephenjason89 PR for issue #6959 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime! |
✅ 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 contains two main patches. The first patch addresses an issue related to incompatible dynamic import component registration on Nuxt 3. The dynamic imports previously being used have been replaced with static imports for a handful of components, including Loader, BaseCollectionForm, SubmitButton etc. The second patch corrects an issue which led to the unnecessary re-registration of a watcher inside the submit function, potentially causing bugs. The watcher has been moved out of the submit function and is directly defined within the Vue component, effectively streamlining this process. These corrections contribute to overall performance optimization and bug prevention. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
#7016 preventing me from testing |
I think this PR has been made redundant by |
That looks good. It's better to unify them all as it is indeed redundant |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
1st issue is the component registration, while dynamic import (lazy-loading) component registration in this syntax works on nuxt-bridge, it doesn't work on nuxt 3.
2nd issue is the unnecessary re-registration of watcher inside a submit function. This may cause bugs or may affect performance. Everytime the function is run, another watcher watching the same reactive reference & doing the same logic is created.
This issue is also present in
Do we want to this changes and change all the above files as well?
PR Type
Context
Before submitting pull request, please make sure:
Optional
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at 5621f42
Refactored component imports and added feedback for collection creation in
CreateCollection.vue
.🤖 Generated by Copilot at 5621f42