@faasjs/react 2.1.0 → 2.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.
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20,9 +20,9 @@ function createSplitedContext(defaultValue) {
|
|
|
20
20
|
function Provider(props) {
|
|
21
21
|
let children = props.children;
|
|
22
22
|
for (const key of Object.keys(props.value)) {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
children = /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
const Context = contexts[key];
|
|
24
|
+
Context.Provider.whyDidYouRender = true;
|
|
25
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value: props.value[key], children });
|
|
26
26
|
}
|
|
27
27
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
28
28
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -18,9 +18,9 @@ function createSplitedContext(defaultValue) {
|
|
|
18
18
|
function Provider(props) {
|
|
19
19
|
let children = props.children;
|
|
20
20
|
for (const key of Object.keys(props.value)) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
children = /* @__PURE__ */ jsx(
|
|
21
|
+
const Context = contexts[key];
|
|
22
|
+
Context.Provider.whyDidYouRender = true;
|
|
23
|
+
children = /* @__PURE__ */ jsx(Context.Provider, { value: props.value[key], children });
|
|
24
24
|
}
|
|
25
25
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@faasjs/browser": "2.
|
|
25
|
+
"@faasjs/browser": "2.2.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "*"
|