Repository navigation
Conversation
There was a problem hiding this comment.
matadatad.json? Typo?
There was a problem hiding this comment.
To dynamically insert a new component into an existing tree such that it shares the same injection
There was a problem hiding this comment.
until all components are marked as dirty and then perform
There was a problem hiding this comment.
res shouldn't have to be assigned here, as its value is not used. In fact, res is only used within the if.
There was a problem hiding this comment.
Similar to getRootContext, this may benefit from ngDevMode asserts to verify the elementNode is present.
There was a problem hiding this comment.
a promise (or is async) then the teardown
There was a problem hiding this comment.
detects if document is present and if not
There was a problem hiding this comment.
Consider breaking this file into separate specs following the current nested defines, e.g. elements_spec.ts, component_and_directives_spec.ts, etc.
There was a problem hiding this comment.
That is my plan, but I want to land this before I will break it up
|
Hi @mhevery! This PR has merge conflicts due to recent upstream merges. |
62c5469 to
2fcfa61
Compare
There was a problem hiding this comment.
Come to think of it, we only use rootContext.cleanResolve as a marker to indicate if the context is marked dirty, the function itself is not called as such as it is captured by the scheduled action closure below. We might as well choose not to expose the resolve function in RootContext but only have a dirty flag.
There was a problem hiding this comment.
Good point, refactored
|
Hi @mhevery! This PR has merge conflicts due to recent upstream merges. |
There was a problem hiding this comment.
Intentional change? I think returns is actually clearer
There was a problem hiding this comment.
Missing comma?
When marking components as dirty, it is necessary
There was a problem hiding this comment.
Missing comma?
object lifetime, use ...
There was a problem hiding this comment.
Replace lines 274-275 with _getComponentHostElementNode?
There was a problem hiding this comment.
Missing comma? If nothing is scheduled, the function
There was a problem hiding this comment.
Name outdated in this comment? Re names, what do you think about markAsClean?
There was a problem hiding this comment.
Nit: I read this the first time as "a promise that was clean" rather than "a promise that is resolved when components are clean". How about onClean or componentsClean?
9e7252b to
479f694
Compare
|
Sorry for an off-topic question, is there any plan to land the From the code seems that part has little coupling to ivy itself. |
Yes, that is our plan, but we want to make sure that it is working well with Ivy before we back port it into ViewEngine |
|
Hi @mhevery! This PR has merge conflicts due to recent upstream merges. |
467a0fb to
9094e4e
Compare
b521f8b to
ffe68af
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
markDirtydetectChangeswhenRenderedwithBodyensureDocumentcleanupDocumentupdate(separate CL)patch_types_spec.tswith discussion per @chuckjazhell world bundletests to usewithBody@IgorMinar & @chuckjaz Please check out
patch_types_spec.tsif this is compatible with your understanding of the world.