I have a question regarding the design of worker logics. I frequently encounter situations where I w

I have a question regarding the design of worker logics. I frequently encounter situations where I want to extract the logic required by a fetch handler into separate functions. However, as I proceed with the extraction steps, I find myself needing access to the request and environment objects within nested functions. I'm struggling to find a solution for designing these parent-child relationships without having to pass the request, context, and environment objects several levels deep. Is there a solution for this issue?
Was this page helpful?