File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -243,20 +243,24 @@ Don't get the `onDone` property on a state confused with `invoke.onDone` - they
243
243
- The ` onDone ` property on a [ state] ( states.mdx ) node refers to the compound state node reaching a [ final state] ( final-states.mdx ) .
244
244
- The ` invoke.onDone ` property refers to the invocation (` invoke.src ` ) being done.
245
245
246
- ``` js {5,13}
246
+ ``` js
247
247
// ...
248
248
loading: {
249
249
invoke: {
250
250
src: someSrc,
251
- onDone: {/* ... */ } // refers to `someSrc` being done
251
+ // refers to `someSrc` being done
252
+ // highlight-next-line
253
+ onDone: {/* ... */ }
252
254
},
253
255
initial: ' loadFoo' ,
254
256
states: {
255
257
loadFoo: {/* ... */ },
256
258
loadBar: {/* ... */ },
257
259
loadingComplete: { type: ' final' }
258
260
},
259
- onDone: ' loaded' // refers to 'loading.loadingComplete' being reached
261
+ // refers to 'loading.loadingComplete' being reached
262
+ // highlight-next-line
263
+ onDone: { target: ' loaded' }
260
264
}
261
265
// ...
262
266
```
You can’t perform that action at this time.
0 commit comments