Skip to content

Commit 0b53907

Browse files
committed
chore: revert back example
1 parent a1f45ca commit 0b53907

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugin-rsc/examples/basic/src/framework/use-cache-runtime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function cacheWrapper(fn: (...args: any[]) => Promise<unknown>) {
5050
})
5151

5252
// run the original function
53-
const result = await fn(...(decodedArgs as any[]))
53+
const result = await fn(...decodedArgs)
5454

5555
// serialize result to a ReadableStream
5656
const stream = renderToReadableStream(result, {

packages/plugin-rsc/examples/react-router/react-router-vite/entry.rsc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function fetchServer(request: Request) {
1515
createTemporaryReferenceSet,
1616
decodeAction,
1717
decodeFormState,
18-
decodeReply: decodeReply as any,
18+
decodeReply,
1919
loadServerAction,
2020
// The incoming request.
2121
request,

0 commit comments

Comments
 (0)