@web-widget/react 0.0.9 → 0.0.10
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/dist/react.server.js +1 -1
- package/package.json +1 -1
package/dist/react.server.js
CHANGED
|
@@ -122,7 +122,7 @@ var defineReactRender = ({
|
|
|
122
122
|
} = {}) => {
|
|
123
123
|
return defineRender(async (context, component, props) => {
|
|
124
124
|
const state = onPrefetchData ? await onPrefetchData(context, component, props) : void 0;
|
|
125
|
-
const mergedProps = state ? Object.assign(
|
|
125
|
+
const mergedProps = state ? Object.assign(state, props) : props;
|
|
126
126
|
let vNode;
|
|
127
127
|
if (typeof component === "function" && component.constructor.name === "AsyncFunction") {
|
|
128
128
|
vNode = await component(mergedProps);
|