Skip to content

Commit 9de2b6a

Browse files
committed
chore: cleanup and profiling
1 parent 08689c0 commit 9de2b6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/collectionview/svelte/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class SvelteKeyedTemplate {
3737
// it will trigger uncessary {N} component updates because the parent view is already attached
3838

3939
(nativeEl as any).__SvelteComponentBuilder__ = (parentView, props) => {
40-
profile('__SvelteComponentBuilder__', () => {
40+
profile('createView.__SvelteComponentBuilder__', () => {
4141
(nativeEl as any).__SvelteComponent__ = new this.component({
4242
target: parentView,
43-
props,
43+
props
4444
});
4545
})();
4646
};
@@ -114,6 +114,8 @@ export default class CollectionViewViewElement extends NativeViewElementNode<Col
114114
this.nativeView.removeTemplate(key);
115115
}
116116
}
117+
118+
@profile
117119
private updateListItem(args: ItemEventData & { bindingContext }) {
118120
const _view = args.view;
119121
const props = { item: args.bindingContext, index: args.index };

0 commit comments

Comments
 (0)