We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f1df8a commit 2ee426fCopy full SHA for 2ee426f
src/client/index.js
@@ -115,10 +115,11 @@ function serializeNode(node) {
115
116
serialized.detail = {
117
attributes: props.flatMap(key => {
118
+ const value = ctx[key]
119
delete ctx[key]
- return ctx[key] === undefined
120
+ return value === undefined
121
? []
- : { key, value: ctx[key], isBound: key in internal.bound }
122
+ : { key, value, isBound: key in internal.bound }
123
}),
124
listeners: Object.entries(internal.callbacks).flatMap(
125
([event, value]) => value.map(o => ({ event, handler: o.toString() }))
0 commit comments