Inherit parent context in coRouter
DSL
#31831
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
theme: kotlin
An issue related to Kotlin support
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
As reported in this Stackoverflow question, the
CoroutineContext
defined in the parent router is lost in nested routers, which is a surprising behavior. For example with this router, a request on/
will have the context set as expected, but not a request on/nested/
.This issue is about inheriting the
CoroutineContext
in such use case to provide a more predictable behavior, while still allowing an override in nested routers.The text was updated successfully, but these errors were encountered: