-
Notifications
You must be signed in to change notification settings - Fork 26.6k
refactor(core): speed up view creation via codegen for view factories. #5993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0005d31
to
a53f014
Compare
|
||
var _COMPILE_METADATA_FROM_JSON = { | ||
'Type': CompileTypeMetadata.fromJson, | ||
'Template': CompileTemplateMetadata.fromJson, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Type
and Template
Reviewed in person with @vsavkin |
2e42eb1
to
8a335f6
Compare
The bundles will only be used if the flag `--useBundles` is passed to `gulp build.js`.
Also reviewed with @kegluneq for the transformer bits. |
f38258a
to
54e176a
Compare
BREAKING CHANGE: - Platform pipes can only contain types and arrays of types, but no bindings any more. - When using transformers, platform pipes need to be specified explicitly in the pubspec.yaml via the new config option `platform_pipes`. - `Compiler.compileInHost` now returns a `HostViewFactoryRef` - Component view is not yet created when component constructor is called. -> use `onInit` lifecycle callback to access the view of a component - `ViewRef#setLocal` has been moved to new type `EmbeddedViewRef` - `internalView` is gone, use `EmbeddedViewRef.rootNodes` to access the root nodes of an embedded view - `renderer.setElementProperty`, `..setElementStyle`, `..setElementAttribute` now take a native element instead of an ElementRef - `Renderer` interface now operates on plain native nodes, instead of `RenderElementRef`s or `RenderViewRef`s
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. |
BREAKING CHANGE:
but no bindings!
Compiler.compileInHost
now returns aHostViewFactoryRef
-> use
onInit
lifecycle callback to access the view of a componentViewRef
is renamed toEmbeddedViewRef
internalView
is gone, useEmbeddedViewRef.rootNodes
to accessthe root nodes of an embedded view
renderer.setElementProperty
,..setElementStyle
,..setElementAttribute
nowtake a native element instead of an ElementRef
Renderer
interface now operates on plain native nodes,instead of
RenderElementRef
s orRenderViewRef
s