Commit d57d1cc
committed
fix(core): unwrap
BREAKING CHANGE: this is considered a breaking change because of timing
for unwrapping `afterNextRender`
The consumers can migrate these `injectLoader` with the following decision making
guidances:
- If the result of the `injecLoader` 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 `injecLoader` are used in a side-effects, then the
consumers need to make sure the parameters to these `injecLoader` 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 `injecLoader` are invoked in an
Injection Context.afterNextRender in injectLoader
1 parent 1fcf43a commit d57d1cc
1 file changed
+30
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
161 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
162 | 158 | | |
163 | 159 | | |
164 | 160 | | |
| |||
0 commit comments