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
feat(v3): create independent instances of every component using a component key prop #315
feat(v3): create independent instances of every component using a component key prop #315
Conversation
…ponent key We added a key to every component to create independent instances for everyone and a default key if you only use one instance of every component and do not want to set the key. Solve: #309
🎉 This PR is included in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
// map.value = await mapPromise; | ||
// ready.value = true; |
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.
Remove these comments.
const componentPromisesList = new Map(); | ||
/** |
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.
Add a blank line between these two lines.
let ancestor = currentInstance?.parent; | ||
let name = ancestor?.type.name || ancestor?.type.__name; |
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.
Reuse this in a function.
ancestor = ancestor.parent; | ||
name = ancestor?.type.name || ancestor?.type.__name; |
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.
Reuse this in a function.
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.
Fix this file to use the new features correctly.
We added a key prop to every component to create independent instances for every one of them and we use a default key if you do not want to set the key and only use one instance of every component.
Solve: #309