diff --git a/packages/typescript-plugin/lib/client.ts b/packages/typescript-plugin/lib/client.ts index 6ce2d789df..e1735370fa 100644 --- a/packages/typescript-plugin/lib/client.ts +++ b/packages/typescript-plugin/lib/client.ts @@ -24,11 +24,7 @@ export async function getComponentProps(fileName: string, componentName: string) if (!server) { return; } - const componentAndProps = server.componentNamesAndProps.get(fileName); - if (!componentAndProps) { - return; - } - return componentAndProps[componentName]; + return await server.getComponentProps(fileName, componentName); } export const getComponentEvents = createRequest<