We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791f45a commit 57988b4Copy full SHA for 57988b4
src/client/index.js
@@ -86,9 +86,12 @@ function serializeNode(node) {
86
}
87
88
const internal = node.detail.$$
89
+ const props = Array.isArray(internal.props)
90
+ ? internal.props // Svelte < 3.13.0 stored props names as an array
91
+ : Object.keys(internal.props)
92
const ctx = clone(internal.ctx)
93
serialized.detail = {
- attributes: internal.props.reduce((o, key) => {
94
+ attributes: props.reduce((o, key) => {
95
const value = ctx[key]
96
if (value === undefined) return o
97
0 commit comments