diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2d005b93..8b16f2f4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
# Change Log
## [Unreleased]
+### Changed
+- Notify child components in update not in render (#42)
+ - No updates on props change (breaking change in an undocumented behavior)
## [1.2.0] - 2020-02-29
### Changed
diff --git a/README.md b/README.md
index fab51b18..cfd39ba1 100644
--- a/README.md
+++ b/README.md
@@ -164,8 +164,6 @@ You can also try them in codesandbox.io:
## Benchmarks
-
-
See [this](https://github.com/dai-shi/react-tracked/issues/1#issuecomment-519509857) for details.
## Blogs
diff --git a/__tests__/e2e/__snapshots__/01_minimal.js.snap b/__tests__/e2e/__snapshots__/01_minimal.js.snap
index 6d48014e..eeb2a92c 100644
--- a/__tests__/e2e/__snapshots__/01_minimal.js.snap
+++ b/__tests__/e2e/__snapshots__/01_minimal.js.snap
@@ -10,7 +10,7 @@ exports[`01_minimal should work with recorded events 1`] = `
exports[`01_minimal should work with recorded events 2`] = `
"
-
Counter
numRendered: 14
Count: 2
numRendered: 16
Count: 2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 18
Count: 2
numRendered: 20
Count: 2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -18,7 +18,7 @@ exports[`01_minimal should work with recorded events 2`] = `
exports[`01_minimal should work with recorded events 3`] = `
"
-
Counter
numRendered: 18
Count: 3
numRendered: 20
Count: 3
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 26
Count: 3
numRendered: 28
Count: 3
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -26,7 +26,7 @@ exports[`01_minimal should work with recorded events 3`] = `
exports[`01_minimal should work with recorded events 4`] = `
"
-
Counter
numRendered: 22
Count: 2
numRendered: 24
Count: 2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 34
Count: 2
numRendered: 36
Count: 2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -34,7 +34,7 @@ exports[`01_minimal should work with recorded events 4`] = `
exports[`01_minimal should work with recorded events 5`] = `
"
-
Counter
numRendered: 26
Count: 1
numRendered: 28
Count: 1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 42
Count: 1
numRendered: 44
Count: 1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -42,7 +42,7 @@ exports[`01_minimal should work with recorded events 5`] = `
exports[`01_minimal should work with recorded events 6`] = `
"
-
Counter
numRendered: 30
Count: 0
numRendered: 32
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 50
Count: 0
numRendered: 52
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -50,7 +50,7 @@ exports[`01_minimal should work with recorded events 6`] = `
exports[`01_minimal should work with recorded events 7`] = `
"
-
Counter
numRendered: 34
Count: -1
numRendered: 36
Count: -1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 58
Count: -1
numRendered: 60
Count: -1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -58,7 +58,7 @@ exports[`01_minimal should work with recorded events 7`] = `
exports[`01_minimal should work with recorded events 8`] = `
"
-
Counter
numRendered: 38
Count: -2
numRendered: 40
Count: -2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 66
Count: -2
numRendered: 68
Count: -2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -66,7 +66,7 @@ exports[`01_minimal should work with recorded events 8`] = `
exports[`01_minimal should work with recorded events 9`] = `
"
-
Counter
numRendered: 42
Count: -3
numRendered: 44
Count: -3
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 74
Count: -3
numRendered: 76
Count: -3
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -74,7 +74,7 @@ exports[`01_minimal should work with recorded events 9`] = `
exports[`01_minimal should work with recorded events 10`] = `
"
-
Counter
numRendered: 46
Count: -2
numRendered: 48
Count: -2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 82
Count: -2
numRendered: 84
Count: -2
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -82,7 +82,7 @@ exports[`01_minimal should work with recorded events 10`] = `
exports[`01_minimal should work with recorded events 11`] = `
"
-
Counter
numRendered: 50
Count: -1
numRendered: 52
Count: -1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 90
Count: -1
numRendered: 92
Count: -1
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -90,7 +90,7 @@ exports[`01_minimal should work with recorded events 11`] = `
exports[`01_minimal should work with recorded events 12`] = `
"
-
Counter
numRendered: 54
Count: 0
numRendered: 56
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 98
Count: 0
numRendered: 100
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -98,7 +98,7 @@ exports[`01_minimal should work with recorded events 12`] = `
exports[`01_minimal should work with recorded events 13`] = `
"
-
Counter
numRendered: 54
Count: 0
numRendered: 56
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
+
Counter
numRendered: 98
Count: 0
numRendered: 100
Count: 0
TextBox
numRendered: 6
Text: hello
numRendered: 8
Text: hello
"
@@ -106,7 +106,7 @@ exports[`01_minimal should work with recorded events 13`] = `
exports[`01_minimal should work with recorded events 14`] = `
"
-
Counter
numRendered: 54
Count: 0
numRendered: 56
Count: 0
TextBox
numRendered: 58
Text: hello1
numRendered: 60
Text: hello1
+
Counter
numRendered: 98
Count: 0
numRendered: 100
Count: 0
TextBox
numRendered: 110
Text: hello1
numRendered: 112
Text: hello1
"
@@ -114,7 +114,7 @@ exports[`01_minimal should work with recorded events 14`] = `
exports[`01_minimal should work with recorded events 15`] = `
"
-
Counter
numRendered: 54
Count: 0
numRendered: 56
Count: 0
TextBox
numRendered: 62
Text: hello12
numRendered: 64
Text: hello12
+
Counter
numRendered: 98
Count: 0
numRendered: 100
Count: 0
TextBox
numRendered: 118
Text: hello12
numRendered: 120
Text: hello12
"
@@ -122,7 +122,7 @@ exports[`01_minimal should work with recorded events 15`] = `
exports[`01_minimal should work with recorded events 16`] = `
"
-
Counter
numRendered: 54
Count: 0
numRendered: 56
Count: 0
TextBox
numRendered: 66
Text: hello123
numRendered: 68
Text: hello123
+
Counter
numRendered: 98
Count: 0
numRendered: 100
Count: 0
TextBox
numRendered: 126
Text: hello123
numRendered: 128
Text: hello123
"
diff --git a/__tests__/e2e/__snapshots__/02_typescript.js.snap b/__tests__/e2e/__snapshots__/02_typescript.js.snap
index 3022a1c9..53736ef5 100644
--- a/__tests__/e2e/__snapshots__/02_typescript.js.snap
+++ b/__tests__/e2e/__snapshots__/02_typescript.js.snap
@@ -2,7 +2,7 @@
exports[`02_typescript should work with recorded events 1`] = `
"
-
Counter
numRendered: 6
Count: 1
numRendered: 8
Count: 1
Person
numRendered: 2
numRendered: 10
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 12
Count: 1
First Name:
Last Name:
Age:
+
Counter
numRendered: 6
Count: 1
numRendered: 8
Count: 1
Person
numRendered: 2
numRendered: 12
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 16
Count: 1
First Name:
Last Name:
Age:
"
@@ -10,7 +10,7 @@ exports[`02_typescript should work with recorded events 1`] = `
exports[`02_typescript should work with recorded events 2`] = `
"
-
Counter
numRendered: 10
Count: 2
numRendered: 12
Count: 2
Person
numRendered: 2
numRendered: 14
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 16
Count: 2
First Name:
Last Name:
Age:
+
Counter
numRendered: 10
Count: 2
numRendered: 12
Count: 2
Person
numRendered: 2
numRendered: 20
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 24
Count: 2
First Name:
Last Name:
Age:
"
@@ -18,7 +18,7 @@ exports[`02_typescript should work with recorded events 2`] = `
exports[`02_typescript should work with recorded events 3`] = `
"
-
Counter
numRendered: 14
Count: 1
numRendered: 16
Count: 1
Person
numRendered: 2
numRendered: 18
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 20
Count: 1
First Name:
Last Name:
Age:
+
Counter
numRendered: 14
Count: 1
numRendered: 16
Count: 1
Person
numRendered: 2
numRendered: 28
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 32
Count: 1
First Name:
Last Name:
Age:
"
@@ -26,7 +26,7 @@ exports[`02_typescript should work with recorded events 3`] = `
exports[`02_typescript should work with recorded events 4`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 2
numRendered: 22
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 24
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 2
numRendered: 36
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 40
Count: 0
First Name:
Last Name:
Age:
"
@@ -34,7 +34,7 @@ exports[`02_typescript should work with recorded events 4`] = `
exports[`02_typescript should work with recorded events 5`] = `
"
-
Counter
numRendered: 22
Count: 1
numRendered: 24
Count: 1
Person
numRendered: 2
numRendered: 26
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 28
Count: 1
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 1
numRendered: 24
Count: 1
Person
numRendered: 2
numRendered: 44
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 48
Count: 1
First Name:
Last Name:
Age:
"
@@ -42,7 +42,7 @@ exports[`02_typescript should work with recorded events 5`] = `
exports[`02_typescript should work with recorded events 6`] = `
"
-
Counter
numRendered: 26
Count: 2
numRendered: 28
Count: 2
Person
numRendered: 2
numRendered: 30
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 32
Count: 2
First Name:
Last Name:
Age:
+
Counter
numRendered: 26
Count: 2
numRendered: 28
Count: 2
Person
numRendered: 2
numRendered: 52
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 56
Count: 2
First Name:
Last Name:
Age:
"
@@ -50,7 +50,7 @@ exports[`02_typescript should work with recorded events 6`] = `
exports[`02_typescript should work with recorded events 7`] = `
"
-
Counter
numRendered: 30
Count: 1
numRendered: 32
Count: 1
Person
numRendered: 2
numRendered: 34
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 36
Count: 1
First Name:
Last Name:
Age:
+
Counter
numRendered: 30
Count: 1
numRendered: 32
Count: 1
Person
numRendered: 2
numRendered: 60
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 64
Count: 1
First Name:
Last Name:
Age:
"
@@ -58,7 +58,7 @@ exports[`02_typescript should work with recorded events 7`] = `
exports[`02_typescript should work with recorded events 8`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 2
numRendered: 38
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 40
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 2
numRendered: 68
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 72
Count: 0
First Name:
Last Name:
Age:
"
@@ -66,7 +66,7 @@ exports[`02_typescript should work with recorded events 8`] = `
exports[`02_typescript should work with recorded events 9`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 2
numRendered: 38
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 40
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 2
numRendered: 68
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 72
Count: 0
First Name:
Last Name:
Age:
"
@@ -74,7 +74,7 @@ exports[`02_typescript should work with recorded events 9`] = `
exports[`02_typescript should work with recorded events 10`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 42
numRendered: 44a
Count: 0
First Name:
Last Name:
Age:
numRendered: 46
numRendered: 48a
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 74
numRendered: 76a
Count: 0
First Name:
Last Name:
Age:
numRendered: 78
numRendered: 80a
Count: 0
First Name:
Last Name:
Age:
"
@@ -82,7 +82,7 @@ exports[`02_typescript should work with recorded events 10`] = `
exports[`02_typescript should work with recorded events 11`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 50
numRendered: 52ab
Count: 0
First Name:
Last Name:
Age:
numRendered: 54
numRendered: 56ab
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 82
numRendered: 84ab
Count: 0
First Name:
Last Name:
Age:
numRendered: 86
numRendered: 88ab
Count: 0
First Name:
Last Name:
Age:
"
@@ -90,7 +90,7 @@ exports[`02_typescript should work with recorded events 11`] = `
exports[`02_typescript should work with recorded events 12`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 58
numRendered: 60abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 62
numRendered: 64abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 90
numRendered: 92abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 94
numRendered: 96abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -98,7 +98,7 @@ exports[`02_typescript should work with recorded events 12`] = `
exports[`02_typescript should work with recorded events 13`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 66
numRendered: 68abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 70
numRendered: 72abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 98
numRendered: 100abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 102
numRendered: 104abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -106,7 +106,7 @@ exports[`02_typescript should work with recorded events 13`] = `
exports[`02_typescript should work with recorded events 14`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 74
numRendered: 76abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 78
numRendered: 80abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 106
numRendered: 108abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 110
numRendered: 112abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -114,7 +114,7 @@ exports[`02_typescript should work with recorded events 14`] = `
exports[`02_typescript should work with recorded events 15`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 82
numRendered: 84abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 86
numRendered: 88abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 114
numRendered: 116abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 118
numRendered: 120abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -122,7 +122,7 @@ exports[`02_typescript should work with recorded events 15`] = `
exports[`02_typescript should work with recorded events 16`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 90
numRendered: 92abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 94
numRendered: 96abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 122
numRendered: 124abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 126
numRendered: 128abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -130,7 +130,7 @@ exports[`02_typescript should work with recorded events 16`] = `
exports[`02_typescript should work with recorded events 17`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 98
numRendered: 100abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 102
numRendered: 104abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 130
numRendered: 132abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 134
numRendered: 136abc
Count: 0
First Name:
Last Name:
Age:
"
@@ -138,7 +138,7 @@ exports[`02_typescript should work with recorded events 17`] = `
exports[`02_typescript should work with recorded events 18`] = `
"
-
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 106
numRendered: 108abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 110
numRendered: 112abc
Count: 0
First Name:
Last Name:
Age:
+
Counter
numRendered: 34
Count: 0
numRendered: 36
Count: 0
Person
numRendered: 138
numRendered: 140abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 142
numRendered: 144abc
Count: 0
First Name:
Last Name:
Age:
"
diff --git a/__tests__/e2e/__snapshots__/03_usestate.js.snap b/__tests__/e2e/__snapshots__/03_usestate.js.snap
index 0a2a54d5..056213bc 100644
--- a/__tests__/e2e/__snapshots__/03_usestate.js.snap
+++ b/__tests__/e2e/__snapshots__/03_usestate.js.snap
@@ -50,7 +50,7 @@ exports[`03_usestate should work with recorded events 6`] = `
exports[`03_usestate should work with recorded events 7`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 6
First Name:
Last Name:
Age:
numRendered: 8
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 26
First Name:
Last Name:
Age:
numRendered: 28
First Name:
Last Name:
Age:
"
@@ -58,7 +58,7 @@ exports[`03_usestate should work with recorded events 7`] = `
exports[`03_usestate should work with recorded events 8`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 10
First Name:
Last Name:
Age:
numRendered: 12
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 30
First Name:
Last Name:
Age:
numRendered: 32
First Name:
Last Name:
Age:
"
@@ -66,7 +66,7 @@ exports[`03_usestate should work with recorded events 8`] = `
exports[`03_usestate should work with recorded events 9`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 14
First Name:
Last Name:
Age:
numRendered: 16
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 34
First Name:
Last Name:
Age:
numRendered: 36
First Name:
Last Name:
Age:
"
@@ -74,7 +74,7 @@ exports[`03_usestate should work with recorded events 9`] = `
exports[`03_usestate should work with recorded events 10`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 18
First Name:
Last Name:
Age:
numRendered: 20
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 38
First Name:
Last Name:
Age:
numRendered: 40
First Name:
Last Name:
Age:
"
@@ -82,7 +82,7 @@ exports[`03_usestate should work with recorded events 10`] = `
exports[`03_usestate should work with recorded events 11`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 22
First Name:
Last Name:
Age:
numRendered: 24
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 42
First Name:
Last Name:
Age:
numRendered: 44
First Name:
Last Name:
Age:
"
@@ -90,7 +90,7 @@ exports[`03_usestate should work with recorded events 11`] = `
exports[`03_usestate should work with recorded events 12`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 26
First Name:
Last Name:
Age:
numRendered: 28
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 46
First Name:
Last Name:
Age:
numRendered: 48
First Name:
Last Name:
Age:
"
@@ -98,7 +98,7 @@ exports[`03_usestate should work with recorded events 12`] = `
exports[`03_usestate should work with recorded events 13`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 30
First Name:
Last Name:
Age:
numRendered: 32
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 50
First Name:
Last Name:
Age:
numRendered: 52
First Name:
Last Name:
Age:
"
@@ -106,7 +106,7 @@ exports[`03_usestate should work with recorded events 13`] = `
exports[`03_usestate should work with recorded events 14`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 34
First Name:
Last Name:
Age:
numRendered: 36
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 54
First Name:
Last Name:
Age:
numRendered: 56
First Name:
Last Name:
Age:
"
@@ -114,7 +114,7 @@ exports[`03_usestate should work with recorded events 14`] = `
exports[`03_usestate should work with recorded events 15`] = `
"
-
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 38
First Name:
Last Name:
Age:
numRendered: 40
First Name:
Last Name:
Age:
+
Counter
numRendered: 22
Count: 5
numRendered: 24
Count: 5
Person
numRendered: 58
First Name:
Last Name:
Age:
numRendered: 60
First Name:
Last Name:
Age:
"
diff --git a/__tests__/e2e/__snapshots__/04_selector.js.snap b/__tests__/e2e/__snapshots__/04_selector.js.snap
index 3aad0434..a0b42287 100644
--- a/__tests__/e2e/__snapshots__/04_selector.js.snap
+++ b/__tests__/e2e/__snapshots__/04_selector.js.snap
@@ -42,7 +42,7 @@ exports[`04_selector should work with recorded events 5`] = `
exports[`04_selector should work with recorded events 6`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 6
First Name:
Last Name:
Age:
numRendered: 8
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 22
First Name:
Last Name:
Age:
numRendered: 24
First Name:
Last Name:
Age:
"
@@ -50,7 +50,7 @@ exports[`04_selector should work with recorded events 6`] = `
exports[`04_selector should work with recorded events 7`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 10
First Name:
Last Name:
Age:
numRendered: 12
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 26
First Name:
Last Name:
Age:
numRendered: 28
First Name:
Last Name:
Age:
"
@@ -58,7 +58,7 @@ exports[`04_selector should work with recorded events 7`] = `
exports[`04_selector should work with recorded events 8`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 14
First Name:
Last Name:
Age:
numRendered: 16
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 30
First Name:
Last Name:
Age:
numRendered: 32
First Name:
Last Name:
Age:
"
@@ -66,7 +66,7 @@ exports[`04_selector should work with recorded events 8`] = `
exports[`04_selector should work with recorded events 9`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 18
First Name:
Last Name:
Age:
numRendered: 20
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 34
First Name:
Last Name:
Age:
numRendered: 36
First Name:
Last Name:
Age:
"
@@ -74,7 +74,7 @@ exports[`04_selector should work with recorded events 9`] = `
exports[`04_selector should work with recorded events 10`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 22
First Name:
Last Name:
Age:
numRendered: 24
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 38
First Name:
Last Name:
Age:
numRendered: 40
First Name:
Last Name:
Age:
"
@@ -82,7 +82,7 @@ exports[`04_selector should work with recorded events 10`] = `
exports[`04_selector should work with recorded events 11`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 26
First Name:
Last Name:
Age:
numRendered: 28
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 42
First Name:
Last Name:
Age:
numRendered: 44
First Name:
Last Name:
Age:
"
@@ -90,7 +90,7 @@ exports[`04_selector should work with recorded events 11`] = `
exports[`04_selector should work with recorded events 12`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 30
First Name:
Last Name:
Age:
numRendered: 32
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 46
First Name:
Last Name:
Age:
numRendered: 48
First Name:
Last Name:
Age:
"
@@ -98,7 +98,7 @@ exports[`04_selector should work with recorded events 12`] = `
exports[`04_selector should work with recorded events 13`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 34
First Name:
Last Name:
Age:
numRendered: 36
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 50
First Name:
Last Name:
Age:
numRendered: 52
First Name:
Last Name:
Age:
"
@@ -106,7 +106,7 @@ exports[`04_selector should work with recorded events 13`] = `
exports[`04_selector should work with recorded events 14`] = `
"
-
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 38
First Name:
Last Name:
Age:
numRendered: 40
First Name:
Last Name:
Age:
+
Counter
numRendered: 18
Count: 0
numRendered: 20
Count: 0
Person
numRendered: 54
First Name:
Last Name:
Age:
numRendered: 56
First Name:
Last Name:
Age:
"
diff --git a/__tests__/e2e/__snapshots__/06_customhook.js.snap b/__tests__/e2e/__snapshots__/06_customhook.js.snap
index 0b92f694..64149e04 100644
--- a/__tests__/e2e/__snapshots__/06_customhook.js.snap
+++ b/__tests__/e2e/__snapshots__/06_customhook.js.snap
@@ -2,7 +2,7 @@
exports[`06_customhook should work with recorded events 1`] = `
"
-
Count: 1
Count: 1
+
Count: 0
Count: 0
"
@@ -10,7 +10,7 @@ exports[`06_customhook should work with recorded events 1`] = `
exports[`06_customhook should work with recorded events 2`] = `
"
-
Count: 2
Count: 2
+
Count: 0
Count: 0
"
@@ -18,7 +18,7 @@ exports[`06_customhook should work with recorded events 2`] = `
exports[`06_customhook should work with recorded events 3`] = `
"
-
Count: 1
Count: 1
+
Count: 0
Count: 0
"
@@ -34,7 +34,7 @@ exports[`06_customhook should work with recorded events 4`] = `
exports[`06_customhook should work with recorded events 5`] = `
"
-
Count: 1
Count: 1
+
Count: 0
Count: 0
"
@@ -42,7 +42,7 @@ exports[`06_customhook should work with recorded events 5`] = `
exports[`06_customhook should work with recorded events 6`] = `
"
-
Count: 2
Count: 2
+
Count: 0
Count: 0
"
@@ -50,7 +50,7 @@ exports[`06_customhook should work with recorded events 6`] = `
exports[`06_customhook should work with recorded events 7`] = `
"
-
Count: 1
Count: 1
+
Count: 0
Count: 0
"
diff --git a/__tests__/e2e/__snapshots__/11_form.js.snap b/__tests__/e2e/__snapshots__/11_form.js.snap
index 62b081dd..a8612406 100644
--- a/__tests__/e2e/__snapshots__/11_form.js.snap
+++ b/__tests__/e2e/__snapshots__/11_form.js.snap
@@ -2,7 +2,7 @@
exports[`11_form should work with recorded events 1`] = `
"
-