Sfoglia il codice sorgente

docs(cordis-tutorial): rename 'Dependencies are live' heading to state the mechanism

Turtle 2 mesi fa
parent
commit
1df2445072
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/cordis-tutorial/03-services.md

+ 1 - 1
docs/cordis-tutorial/03-services.md

@@ -69,7 +69,7 @@ Hello, world!
 
 Swap the two lines in `cordis.yml` and rerun: same output. Try removing `./greeter.ts` entirely: the consumer stays PENDING and prints nothing — no crash, no partial run. A PENDING fiber does not keep Node's event loop alive either, so a composition with nothing else running exits 0 silently. [Chapter 6](06-composition-and-hmr.md) shows how to diagnose that state.
 
-## Dependencies are live
+## Dependencies are tracked after load
 
 `inject` is not a one-shot boot check. If a required service disappears while the app runs — its provider was unloaded or hot-replaced — every dependent plugin is unloaded too, and loads again when the service returns. Combined with effects ([chapter 2](02-lifecycle-and-effects.md)), this prevents a running consumer from retaining a reference to an unavailable service: its own registrations are unwound when the dependency disappears.