Skip to content

Commit b9954a2

Browse files
delete unused file and update knip configs
1 parent 5f48cc7 commit b9954a2

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

knip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const config: KnipConfig = {
1212
'node_package/src/registerServerComponent/server.rsc.ts!',
1313
'node_package/src/wrapServerComponentRenderer/server.tsx!',
1414
'node_package/src/wrapServerComponentRenderer/server.rsc.tsx!',
15-
'node_package/src/RSCRoute.ts!',
15+
'node_package/src/RSCRoute.tsx!',
16+
'node_package/src/ServerComponentFetchError.ts!',
1617
'eslint.config.ts',
1718
],
1819
project: ['node_package/src/**/*.[jt]s{x,}!', 'node_package/tests/**/*.[jt]s{x,}'],

node_package/src/RSCRoute.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ const PromiseWrapper = ({ promise }: { promise: Promise<React.ReactNode> }) => {
6262
};
6363

6464
const RSCRoute = ({ componentName, componentProps }: RSCRouteProps): React.ReactNode => {
65-
const { getComponent, getCachedComponent } = useRSC();
66-
const cachedComponent = getCachedComponent(componentName, componentProps);
67-
if (cachedComponent) {
68-
return cachedComponent;
69-
}
70-
65+
const { getComponent } = useRSC();
7166
const componentPromise = getComponent(componentName, componentProps);
7267
return (
7368
<RSCRouteErrorBoundary componentName={componentName} componentProps={componentProps}>

node_package/src/RSCRouteError.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)