pawa-ssr 1.3.14 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -7
- package/package.json +1 -1
- package/pawaElement.js +1 -1
package/index.js
CHANGED
|
@@ -565,13 +565,6 @@ const streamingComponent=async (el,stream)=>{
|
|
|
565
565
|
}
|
|
566
566
|
})
|
|
567
567
|
const children=el._componentChildren
|
|
568
|
-
const hydrate={
|
|
569
|
-
children:children,
|
|
570
|
-
props:{
|
|
571
|
-
...el._hydrateProps,
|
|
572
|
-
},
|
|
573
|
-
slots:{...slotHydrates},
|
|
574
|
-
}
|
|
575
568
|
|
|
576
569
|
const id=pawaGenerateId(10)
|
|
577
570
|
const encodeJSON = (obj) => Buffer.from(JSON.stringify(obj)).toString('base64').replace(/\+/g, '-');
|
|
@@ -645,6 +638,13 @@ appContext.component._prop={children,...el._props,...slots}
|
|
|
645
638
|
if (appContext?.insert){
|
|
646
639
|
Object.assign(el._context,appContext.insert)
|
|
647
640
|
}
|
|
641
|
+
const hydrate={
|
|
642
|
+
children:children,
|
|
643
|
+
props:{
|
|
644
|
+
...el._hydrateProps,
|
|
645
|
+
},
|
|
646
|
+
slots:{...slotHydrates},
|
|
647
|
+
}
|
|
648
648
|
if (isBoundary) {
|
|
649
649
|
store.getStore().batch.push({
|
|
650
650
|
component:compo,
|
package/package.json
CHANGED
package/pawaElement.js
CHANGED
|
@@ -196,6 +196,7 @@ class PawaElement {
|
|
|
196
196
|
name=attr.name
|
|
197
197
|
}
|
|
198
198
|
const setProps=()=>{
|
|
199
|
+
this._hydrateProps[name]=attr.value
|
|
199
200
|
delete this._restProps[name]
|
|
200
201
|
let hydatename
|
|
201
202
|
if(name === 'class'){
|
|
@@ -205,7 +206,6 @@ class PawaElement {
|
|
|
205
206
|
}else{
|
|
206
207
|
hydatename=':'+name
|
|
207
208
|
}
|
|
208
|
-
this._hydrateProps[name]=attr.value
|
|
209
209
|
let value=attr.value
|
|
210
210
|
if (value.includes('@{')) {
|
|
211
211
|
const regex = /@{([^}]*)}/g;
|