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

fix(dev): preserve original handler in [composedHandler]. #1873

Merged
merged 3 commits into from
Jan 1, 2024

Conversation

usualoma
Copy link
Member

Fixes #1868

How about this solution?

If we do more

I suppose we could add the information "added from sub pp" in inspectRoutes. But I didn't go that far at this point, because I think it's enough to fix the problem in #1868.

Author should do the followings, if applicable

  • Add tests
  • Run tests
  • yarn denoify to generate files for Deno

src/hono-base.ts Outdated Show resolved Hide resolved
@yusukebe
Copy link
Member

@usualoma Happy New Year!

I think this way is good. And I also think we don't need added from sub app now. I'v left one comment, please check it.

@usualoma
Copy link
Member Author

@yusukebe Happy New Year 🎍
You're right, I did change it!
239db3d

@yusukebe
Copy link
Member

yusukebe commented Jan 1, 2024

@usualoma

Thanks! I'll merge this now.

@yusukebe yusukebe merged commit 813484d into honojs:main Jan 1, 2024
11 checks passed
yusukebe pushed a commit that referenced this pull request Jan 2, 2024
* fix(dev): preserve original handler in [composedHandler].

* chore: denoify

* refactor(dev): better variable names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

showRoutes shows handler as [middleware] if subApp has a custom error handler
2 participants