You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/changelog/1.4.0.md
+19-20Lines changed: 19 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
## 1.4.0
2
2
3
+
* React 16.6 & 16.7 support
4
+
* Added `React.Suspense`.
5
+
For technical reasons (types, power, constraints) `React.lazy` is not added nor needed in Scala;
6
+
use the new `AsyncCallback` instead.
7
+
* The new `getDerivedStateFromError` has *not* been implemented, and cannot be until facebook/react#13986 is merged.
8
+
* Add `React.memo` to add reusability to "functional" components
9
+
3
10
* VDOM modernisation
4
11
5
12
React's VDOM capabilities increased drastically over a year ago in the upgrade from React 15 to 16.
@@ -15,7 +22,7 @@
15
22
* To compose two `TagMod`s, use `TagMod(a, b)` instead of `a(b)`
16
23
* To compose `VdomNode`s, either use `React.Fragment(a, b)` to result in something immediately renderable, or `TagMod(a, b)` if you plan to apply it to a tag.
17
24
* VDOM tags now extends `VdomElement` directly - no need to coerce or call `.render` when caching
18
-
* Tag building now 30% faster (but we're talking microseconds so negligible so why am I writing this in to the changelog?... life's a mystery)
25
+
* Tag building now 30% faster (but we're talking microseconds so it's negligible so why am I writing this in to the changelog?... life's a mystery)
19
26
* Fix subtle bug/puzzler where you could think you're modifying a tag but weren't --
20
27
the confusing behaviour responsible will now no longer compile. ([#508](https://github.com/japgolly/scalajs-react/issues/508))
21
28
* Collections get new implicit methods `mkReactFragment` and `toReactFragment` (similar to existing `mkTagMod` and `toTagMod`)
@@ -29,17 +36,6 @@
29
36
it can even be composed to run sequentially or concurrently. In fact you can see an example
30
37
of running a bunch of AJAX calls in parallel [here in this new demo](https://japgolly.github.io/scalajs-react/#examples/ajax-2).
31
38
32
-
* React 16.6 & 16.7 support
33
-
* Added `React.Suspense`.
34
-
For technical reasons (types, power, constraints) `React.lazy` is not added nor needed in Scala;
35
-
use the new `AsyncCallback` instead.
36
-
* The new `getDerivedStateFromError` has *not* been implemented, and cannot be until facebook/react#13986 is merged.
37
-
* Add `React.memo` to add reusability to "functional" components
38
-
39
-
*`Reusability` & `Reusable` have been moved from the `extra` module, into `core`.
40
-
1. It was required to implement the new `React.memo`
41
-
2. It's necessary for using core React feature `shouldComponentUpdate` reasonably
0 commit comments