Skip to content

Commit a7deca6

Browse files
Update parameter documentation in getReactServerComponent.client.ts
1 parent 9a27142 commit a7deca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node_package/src/getReactServerComponent.client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const createFromFetch = async (fetchPromise: Promise<Response>) => {
3838
* This is used for client-side navigation or when rendering components
3939
* that weren't part of the initial server render.
4040
*
41-
* @param props - Object containing component name and props
41+
* @param componentName - Name of the server component
42+
* @param componentProps - Props for the server component
4243
* @param railsContext - The Rails context containing configuration
4344
* @returns A Promise resolving to the rendered React element
4445
* @throws Error if RSC payload generation URL path is not configured or network request fails

0 commit comments

Comments
 (0)