From 2841133ee39505456ab98428f3610dce9438a21b Mon Sep 17 00:00:00 2001 From: ARYAN0-WORK Date: Thu, 21 May 2026 11:17:11 +0000 Subject: [PATCH] docs(5x): clarify next() usage in route handler examples --- src/content/docs/en/5x/guide/routing.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content/docs/en/5x/guide/routing.mdx b/src/content/docs/en/5x/guide/routing.mdx index 0b6b0cb7f1..dab25c56ee 100644 --- a/src/content/docs/en/5x/guide/routing.mdx +++ b/src/content/docs/en/5x/guide/routing.mdx @@ -242,6 +242,9 @@ app.get( ); ``` +In this example: +The callback does not end the request-response cycle, That's why it should call `next()` in order to pass control to the next callback. Otherwise the request will be just left hanging and the client will wait indefinitely for a response. + An array of callback functions can handle a route. For example: ```js