@knotx/react 0.2.4 → 0.2.6
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -171,7 +171,7 @@ function initReactEngine({
|
|
|
171
171
|
const subscription = subject.pipe(
|
|
172
172
|
operators.map((value) => selector ? selector(value, contextRef.current) : value),
|
|
173
173
|
operators.distinctUntilChanged()
|
|
174
|
-
).subscribe(setState);
|
|
174
|
+
).subscribe((value) => setState(() => value));
|
|
175
175
|
return () => subscription.unsubscribe();
|
|
176
176
|
}, [subject, selector]);
|
|
177
177
|
return state;
|
package/dist/index.js
CHANGED
|
@@ -169,7 +169,7 @@ function initReactEngine({
|
|
|
169
169
|
const subscription = subject.pipe(
|
|
170
170
|
map((value) => selector ? selector(value, contextRef.current) : value),
|
|
171
171
|
distinctUntilChanged()
|
|
172
|
-
).subscribe(setState);
|
|
172
|
+
).subscribe((value) => setState(() => value));
|
|
173
173
|
return () => subscription.unsubscribe();
|
|
174
174
|
}, [subject, selector]);
|
|
175
175
|
return state;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "React for Knotx",
|
|
5
5
|
"author": "boenfu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
|
-
"@knotx/core": "0.2.
|
|
37
|
-
"@knotx/jsx": "0.2.
|
|
38
|
-
"@knotx/plugins-base-render": "0.2.
|
|
36
|
+
"@knotx/core": "0.2.6",
|
|
37
|
+
"@knotx/jsx": "0.2.6",
|
|
38
|
+
"@knotx/plugins-base-render": "0.2.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/react": "^17.0.0",
|
|
42
42
|
"@types/react-dom": "^17.0.0",
|
|
43
43
|
"react": "^17.0.0",
|
|
44
44
|
"react-dom": "^17.0.0",
|
|
45
|
-
"@knotx/build-config": "0.2.
|
|
46
|
-
"@knotx/eslint-config": "0.2.
|
|
47
|
-
"@knotx/jsx": "0.2.
|
|
48
|
-
"@knotx/typescript-config": "0.2.
|
|
45
|
+
"@knotx/build-config": "0.2.6",
|
|
46
|
+
"@knotx/eslint-config": "0.2.6",
|
|
47
|
+
"@knotx/jsx": "0.2.6",
|
|
48
|
+
"@knotx/typescript-config": "0.2.6"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|