Skip to content

Conversation

@mao-sz
Copy link
Contributor

@mao-sz mao-sz commented May 9, 2024

Current documentation specifies router param callbacks are not inherited by mounted apps or routers, but does not also specify they do not inherit from parent routers either.

This lack of explicitness led to false expectations in Express #5586.

Current documentation specifies router param callbacks are not inherited
by mounted apps or routers, but does not also specify they do not
inherit from parent routers either.
@netlify
Copy link

netlify bot commented May 9, 2024

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 27d5f46
🔍 Latest deploy log https://app.netlify.com/sites/expressjscom-preview/deploys/663d34ef60d3560009ffeb27
😎 Deploy Preview https://deploy-preview-1515--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@crandmck crandmck requested review from crandmck and wesleytodd May 9, 2024 23:53
@crandmck
Copy link
Member

crandmck commented May 9, 2024

The changes look fine to me, but I'd like confirmation from @wesleytodd since he was involved in the original discussion in expressjs/express#5586.

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @MaoShizhong!

@crandmck crandmck merged commit 7e2d60b into expressjs:gh-pages May 17, 2024
@mao-sz mao-sz deleted the docs/clarify-param-method-param-inheritance branch May 17, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants