Skip to content

Commit aac4621

Browse files
authored
docs: fix typo and clarify generateFunctionId example (#5728)
1 parent da69479 commit aac4621

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/start/framework/react/guide/server-functions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,14 @@ export default defineConfig({
256256
tanstackStart({
257257
serverFns: {
258258
generateFunctionId: ({ filename, functionName }) => {
259-
// Return a custom ID string. If you return undefined, the default is used.
259+
// Return a custom ID string
260260
return crypto
261261
.createHash('sha1')
262262
.update(`${filename}--${functionName}`)
263263
.digest('hex')
264-
return undefined
264+
265+
// If you return undefined, the default is used
266+
// return undefined
265267
},
266268
},
267269
}),

0 commit comments

Comments
 (0)