File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ async load(ctx) {
173173 const greetings = await ext .getJson (" /greetings.json" )
174174
175175 // maintain in local reactive state in (localized to extension)
176- ext .state . greetings = greetings
176+ ext .setState ({ greetings })
177177
178178 // maintain in global reactive state
179- ctx .state . greetings = greetings
179+ ctx .setState ({ greetings })
180180}
181181```
182182
Original file line number Diff line number Diff line change @@ -256,10 +256,10 @@ export default {
256256 const greetings = api .response
257257 if (greetings) {
258258 // maintain in local reactive state in (localized to extension)
259- ext .state . greetings = greetings
259+ ext .setState ({ greetings })
260260
261261 // maintain in global reactive state
262- ctx .state . greetings = greetings
262+ ctx .setState ({ greetings })
263263 } else {
264264 ctx .setError (api .error )
265265 }
You can’t perform that action at this time.
0 commit comments