cujojs/wire — Issue #23: Wiring a child via the wire factory may be allowing the child to start too early
Author: briancavalier
Created: 2012-02-22 18:57:15+00:00
State: open
Labels: debug, plugin

Because of the order of promise resolution, the child's "Context ready" is output before the parent's. The actual order in which things happen is correct, but the output seems backwards.

The reason is that the parent can't finish until all it's components have resolved. Given that the child spec *is* one of the components, it makes sense that the child's promise would resolve first. On the other hand, a child can't be wired until its parent has finished!

This is definitely a tricky situation, but need to figure out if it it's actually happening, *and* if it causes any problems.