8000 ComponentLoader: the lazy-registry placeholder fallback by bergie · Pull Request #1100 · noflo/noflo · GitHub
[go: up one dir, main page]

Skip to content

ComponentLoader: the lazy-registry placeholder fallback - #1100

Closed
bergie wants to merge 1 commit into
masterfrom
loader-registry-placeholders
Closed

bergie wants to merge 1 commit into
masterfrom
loader-registry-placeholders

Conversation

@bergie
@bergie bergie commented Oct 18, 2026
Copy link
Copy Markdown
Member

The registry contract (work document #25) lets registries be lazy: list() reports the catalog synchronously, get() resolves the implementations. The wrapped-registry shapes of the noflo-jekyll wave made the placeholders real: a registry whose list() carries empty-object entries for every component, with get() resolving the definitions, failed every load with Component not available — the truthy placeholder was treated as a resolved definition and the missing-component fallback to registry.get() never ran.

The loader now detects a placeholder structurally (an object with no getComponent, no graph nodes, and no own properties) and falls back to the registry's lazy resolution. Graphs, factories, and module paths are unaffected; an unresolvable placeholder still fails with the same honest error.

Specs: the placeholder resolution through a lazy registry (including an unresolvable one failing honestly) and a network running end to end through a lazily-resolved placeholder component.

The registry contract (work document #25) lets registries be lazy:
list() reports the catalog synchronously, get() resolves the
implementations. The wrapped-registry shapes of the noflo-jekyll wave
made the placeholders real: a registry whose list() carries
empty-object entries for every component, with get() resolving the
definitions, failed every load with Component not available — the
truthy placeholder was treated as a resolved definition and the
missing-component fallback to registry.get() never ran.

The loader now detects a placeholder structurally (an object with no
getComponent, no graph nodes, and no own properties) and falls back to
the registry's lazy resolution. Graphs, factories, and module paths
are unaffected; an unresolvable placeholder still fails with the same
honest error.

Specs: the placeholder resolution through a lazy registry (including
an unresolvable one failing honestly) and a network running end to
end through a lazily-resolved placeholder component.
@bergie bergie closed this Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0