12. CallTree Dependency Preloading
The Problem
A component can indirectly load several descendants. Repeated runtime discovery can cause avoidable network revisits.
The React Difficulty
React can use route-level or module-level prefetching, but discovering an application's component dependency tree is normally part of the build/tooling ecosystem rather than a hidden MS-style runtime booster.
React Approach
const Sales = lazy(() => import("./Sales"));
// Additional descendants are loaded when their code paths execute.
// Application tooling may add route or module prefetch hints.
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
// Developer does not call CallTree.
// At build time MS detects onLoad inject dependencies.
// Runtime can preload A1, A2, A11, A111 before executing A.
await ms.inject("./folder1/sales", "Div1");
Why this way is useful in business applications :
The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.
Key Point :
ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.