Skip to content

Commit

Permalink
refactor(vue-next): remove Date.now in trace log
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomchan-cxj committed Nov 25, 2022
1 parent cc24c27 commit f03bf69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/hippy-vue-next/src/runtime/render/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ function renderToNative(
chunks.forEach((chunk) => {
switch (chunk.type) {
case NodeOperateType.CREATE:
trace(...componentName, 'createNode', Date.now(), chunk.nodes);
trace(...componentName, 'createNode', chunk.nodes);
Native.hippyNativeDocument.createNode(rootViewId, chunk.nodes);
break;
case NodeOperateType.UPDATE:
trace(...componentName, 'updateNode', Date.now(), chunk.nodes);
trace(...componentName, 'updateNode', chunk.nodes);
// iOS currently cannot update nodes in batches, this requires ios client repair
if (Native.isIOS()) {
chunk.nodes.forEach((node) => {
Expand All @@ -136,7 +136,7 @@ function renderToNative(
}
break;
case NodeOperateType.DELETE:
trace(...componentName, 'deleteNode', Date.now(), chunk.nodes);
trace(...componentName, 'deleteNode', chunk.nodes);
// iOS currently cannot delete nodes in batches, this requires ios client repair
if (Native.isIOS()) {
chunk.nodes.forEach((node) => {
Expand Down
1 change: 0 additions & 1 deletion packages/hippy-vue-next/src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export function trace(...context: NeedToTyped[]): void {
if (IS_PROD || isSilent) {
return;
}

console.log(...context);
}

Expand Down

0 comments on commit f03bf69

Please sign in to comment.