跳转到内容

probeRegistrations

此内容尚不支持你的语言。

probeRegistrations(register): Promise<ProbedRegistrations>

Defined in: hotReload.ts:28

Run register (a project-bundle re-import) inside a throwaway AppContext, so its defineComponent / addSystem populate an isolated registry instead of the live one — and return what it registered. The live context is always restored, even on throw. The caller compares fingerprint to the live one (getUserComponentFingerprint before calling) to choose hot-swap (unchanged → keep the World) vs full-reload, and feeds pending to App.hotSwapSystems. Component identity is interned by name (see component.ts), so the probe’s component defs share the live _ids — the re-imported systems’ queries resolve to the live storage. See docs/REARCH_HOT_RELOAD.md.

() => Promise<void>

Promise<ProbedRegistrations>