Skip to content

Commit f856ae5

Browse files
committed
Better react render tree naming
1 parent b2de1a7 commit f856ae5

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

packages/fluent-theme/src/private/FluentThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const FluentDecorator = composePipeline<InferDecoratorRequest<typeof ActivityBor
7474
}
7575
]);
7676

77-
FluentDecorator.displayName = 'FluentDecorator';
77+
FluentDecorator.displayName = 'FluentDecoratorPipeline';
7878

7979
const FluentDecoratorWithRequest = memo(function DecoratorWithRequest(props) {
8080
const request = useDecoratorRequest(ActivityBorderDecoratorRequest);

packages/fluent-theme/src/private/composePipeline.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type StageComponent<R, P> = ComponentType<
1313
>;
1414
type PipelineComponent<P, R> = ComponentType<PipelineProps<R, P>>;
1515

16-
const Passthrough = memo(function Passthrough({ children }: Readonly<{ children?: ReactNode | undefined }>) {
16+
const Passthrough = memo(function PipelinePassthrough({ children }: Readonly<{ children?: ReactNode | undefined }>) {
1717
return <Fragment>{children}</Fragment>;
1818
});
1919

@@ -35,12 +35,10 @@ export function composePipeline<
3535
/>
3636
);
3737
});
38-
StageWrapper.displayName = `${Stage.displayName || Stage.name}Stage`;
38+
StageWrapper.displayName = `PipelineStage(Memo(${Stage.displayName || Stage.name}))`;
3939
return StageWrapper;
4040
}, PassthroughComponent);
4141

42-
ComposedPipeline.displayName = `ComposedPipeline(${stages.length})`;
43-
4442
return memo(function Pipeline(props: PipelineProps<Request, Props>) {
4543
const { request, ...restProps } = props;
4644

0 commit comments

Comments
 (0)