@web-widget/react 0.1.1 → 0.2.0

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.
@@ -123,7 +123,7 @@ var defineReactRender = ({
123
123
  } = {}) => {
124
124
  return defineRender(async (context, component, props) => {
125
125
  const state = onPrefetchData ? await onPrefetchData(context, component, props) : void 0;
126
- const mergedProps = state ? Object.assign(state, props) : props;
126
+ const mergedProps = state ? Object.assign({}, state, props) : props;
127
127
  let vNode;
128
128
  if (typeof component === "function" && component.constructor.name === "AsyncFunction") {
129
129
  vNode = await component(mergedProps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-widget/react",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {