You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the spread operator {...obj} to apply an object containing a property created with createAttachmentKey() to an element, the attachment is destroyed and recreated on every component re-render, even for unrelated state changes.
This behavior differs from directly using the @attach directive, where the attachment is properly maintained across re-renders.
Describe the bug
When using the spread operator
{...obj}
to apply an object containing a property created withcreateAttachmentKey()
to an element, the attachment is destroyed and recreated on every component re-render, even for unrelated state changes.This behavior differs from directly using the
@attach
directive, where the attachment is properly maintained across re-renders.Reproduction
Click multiple time on button, and check console
Expecting result
Result obtained
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: