Skip to content

Commit

Permalink
fix: simplify language
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Sep 11, 2024
1 parent c300249 commit 4e322ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/@lwc/engine-core/src/framework/profiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function getMutationProperties(mutationLogs: MutationLog[] | undefined): [string
const usePlural = tagNames.length > 1 || tagNamesToIdsAndProps.get(tagNames[0])!.ids.size > 1;
const result: [string, string][] = [
[
`Re-rendered Component${usePlural ? 's' : ''}`,
`Component${usePlural ? 's' : ''}`,
ArrayJoin.call(
ArrayMap.call(tagNames, (_) => tagNamesToDisplayTagNames.get(_)),
', '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function rehydrationEntry(tagName, propString) {
detail: obj({
devtools: obj({
properties: arr([
arr(['Re-rendered Component', `<${tagName}>`]),
arr(['Component', `<${tagName}>`]),
arr([`<${tagName}>`, propString]),
]),
}),
Expand Down Expand Up @@ -198,7 +198,7 @@ if (process.env.NODE_ENV === 'production') {
devtools: obj({
properties: arr([
arr([
'Re-rendered Components',
'Components',
`<x-child> (\u00D72)`, // x2 with multiplication symbol
]),
arr([
Expand Down Expand Up @@ -290,7 +290,7 @@ if (process.env.NODE_ENV === 'production') {
detail: obj({
devtools: obj({
properties: arr([
arr(['Re-rendered Components', '<x-child>, <x-parent>']),
arr(['Components', '<x-child>, <x-parent>']),
arr(['<x-child>', 'lastName']),
arr(['<x-parent>', 'firstName']),
]),
Expand Down

0 comments on commit 4e322ab

Please sign in to comment.