Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Clarify inheritance behaviour of router params callbacks #1515

Conversation

MaoShizhong
Copy link
Contributor

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.
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
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
7 checks passed
@MaoShizhong MaoShizhong deleted the docs/clarify-param-method-param-inheritance branch May 17, 2024 14:30
IntegerAlex added a commit to IntegerAlex/expressjs.com that referenced this pull request May 17, 2024
Clarify inheritance behaviour of route params in .params (expressjs#1515)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment