isomorfeus-react 16.10.1 → 16.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/react.rb +9 -7
- data/lib/react/component/features.rb +4 -3
- data/lib/react/context_wrapper.rb +5 -4
- data/lib/react/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326bdca8d447fe9810151aad70a3b888d42151ac9905e25c1b84b9f43908fce4
|
4
|
+
data.tar.gz: 496e4284de76f1286444788f2acbe587b4ebdc12386209a214d01b1ea65bd8c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c698cbf40131a53daa2be7271e4610d54eb08b6c573a6ab0e428b537752e221274434cf38e0b9ed98831b7569ae0b63e889263d07b054ac19646dbb7bbc93586
|
7
|
+
data.tar.gz: 6964dfab449225525076ebe7d6d7395097d1459d67af87c6e1c35a08090bb916abf6e2fad4dc4a19bcda8c8cf321966a60c27f4c1358b728051c802670559713
|
data/lib/react.rb
CHANGED
@@ -78,9 +78,10 @@ module React
|
|
78
78
|
let block_result = block.$call();
|
79
79
|
let last_buffer_length = Opal.React.render_buffer[Opal.React.render_buffer.length - 1].length;
|
80
80
|
let last_buffer_element = Opal.React.render_buffer[Opal.React.render_buffer.length - 1][last_buffer_length - 1];
|
81
|
-
if (block_result && block_result !== last_buffer_element &&
|
82
|
-
|
83
|
-
|
81
|
+
if (block_result && block_result !== last_buffer_element && block_result !== nil &&
|
82
|
+
(typeof block_result === "string" || typeof block_result.$$typeof === "symbol" ||
|
83
|
+
(typeof block_result.constructor !== "undefined" && block_result.constructor === Array &&
|
84
|
+
block_result[block_result.length - 1] !== last_buffer_element && typeof block_result[block_result.length - 1].$$typeof === "symbol"))) {
|
84
85
|
Opal.React.render_buffer[Opal.React.render_buffer.length - 1].push(block_result);
|
85
86
|
}
|
86
87
|
children = Opal.React.render_buffer.pop();
|
@@ -144,9 +145,10 @@ module React
|
|
144
145
|
let block_result = block.$call()
|
145
146
|
let last_buffer_length = Opal.React.render_buffer[Opal.React.render_buffer.length - 1].length;
|
146
147
|
let last_buffer_element = Opal.React.render_buffer[Opal.React.render_buffer.length - 1][last_buffer_length - 1];
|
147
|
-
if (block_result && block_result !== last_buffer_element &&
|
148
|
-
|
149
|
-
|
148
|
+
if (block_result && block_result !== last_buffer_element && block_result !== nil &&
|
149
|
+
(typeof block_result === "string" || typeof block_result.$$typeof === "symbol" ||
|
150
|
+
(typeof block_result.constructor !== "undefined" && block_result.constructor === Array &&
|
151
|
+
block_result[block_result.length - 1] !== last_buffer_element && typeof block_result[block_result.length - 1].$$typeof === "symbol"))) {
|
150
152
|
Opal.React.render_buffer[Opal.React.render_buffer.length - 1].push(block_result);
|
151
153
|
}
|
152
154
|
children = Opal.React.render_buffer.pop()
|
@@ -192,4 +194,4 @@ module React
|
|
192
194
|
`Opal.global.React.memo(function_component)`
|
193
195
|
end
|
194
196
|
end
|
195
|
-
end
|
197
|
+
end
|
@@ -19,9 +19,10 @@ module React
|
|
19
19
|
let block_result = block.$call()
|
20
20
|
let last_buffer_length = Opal.React.render_buffer[Opal.React.render_buffer.length - 1].length;
|
21
21
|
let last_buffer_element = Opal.React.render_buffer[Opal.React.render_buffer.length - 1][last_buffer_length - 1];
|
22
|
-
if (block_result && block_result !== last_buffer_element &&
|
23
|
-
|
24
|
-
|
22
|
+
if (block_result && block_result !== last_buffer_element && block_result !== nil &&
|
23
|
+
(typeof block_result === "string" || typeof block_result.$$typeof === "symbol" ||
|
24
|
+
(typeof block_result.constructor !== "undefined" && block_result.constructor === Array &&
|
25
|
+
block_result[block_result.length - 1] !== last_buffer_element && typeof block_result[block_result.length - 1].$$typeof === "symbol"))) {
|
25
26
|
Opal.React.render_buffer[Opal.React.render_buffer.length - 1].push(block_result);
|
26
27
|
}
|
27
28
|
}
|
@@ -19,9 +19,10 @@ module React
|
|
19
19
|
let block_result = block.$call();
|
20
20
|
let last_buffer_length = Opal.React.render_buffer[Opal.React.render_buffer.length - 1].length;
|
21
21
|
let last_buffer_element = Opal.React.render_buffer[Opal.React.render_buffer.length - 1][last_buffer_length - 1];
|
22
|
-
if (block_result && block_result !== last_buffer_element &&
|
23
|
-
|
24
|
-
|
22
|
+
if (block_result && block_result !== last_buffer_element && block_result !== nil &&
|
23
|
+
(typeof block_result === "string" || typeof block_result.$$typeof === "symbol" ||
|
24
|
+
(typeof block_result.constructor !== "undefined" && block_result.constructor === Array &&
|
25
|
+
block_result[block_result.length - 1] !== last_buffer_element && typeof block_result[block_result.length - 1].$$typeof === "symbol"))) {
|
25
26
|
Opal.React.render_buffer[Opal.React.render_buffer.length - 1].push(block_result);
|
26
27
|
}
|
27
28
|
children = Opal.React.render_buffer.pop();
|
@@ -43,4 +44,4 @@ module React
|
|
43
44
|
}
|
44
45
|
end
|
45
46
|
end
|
46
|
-
end
|
47
|
+
end
|
data/lib/react/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-react
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.10.
|
4
|
+
version: 16.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|