Commit 537be01
committed
fix(soba): unwrap
BREAKING CHANGE: this is considered a breaking change because of timing
for unwrapping `afterNextRender`
The consumers can migrate `injetHelper` with the following decision making
guidances:
- If the result of the `injectHelper` are used as bindings on the template,
there's no need to change anything. This also applies to `computed`
using these result and the computed(s) are used as bindings on the
template.
- If the result of the `injectHelper` are used in a side-effects, then the
consumers need to make sure the parameters to these `injectHelper` have
a chance to resolve (i.e: `input` and `afterNextRender`; this was the
reason `afterNextRender` was used internally). In addition, the
consumers also need to make sure the `injectHelper` are invoked in an
Injection Context.afterNextRender in injectHelper
1 parent d57d1cc commit 537be01
1 file changed
+19
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
44 | 41 | | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
50 | 47 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
54 | 51 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
58 | 55 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
| |||
0 commit comments