This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Confusion regarding EMPTY_MIDDLEWARE #2
Closed
Description
Hi, I'm a little confused about how EMPTY_MIDDLEWARE
works. It's empty and therefore returns nil
. Since it runs last, it makes all of my stacks return nil
instead of their current env
.
I'm doing the following in my code to work around this:
::Middleware::Runner.const_set :EMPTY_MIDDLEWARE, lambda { |env| env }
Am I misunderstanding something? Doing the whole stack backwards?
Metadata
Metadata
Assignees
Labels
No labels