▲ | bestest 5 days ago | |||||||
express/koa give you the use() chain.
next.js gives you one root, but nothing stops you from chaining yourself. same semantics, just manual wiring.
};
root is given, chain is trivial. that’s middleware. | ||||||||
▲ | rafaelmn 5 days ago | parent [-] | |||||||
Nothing trivial about that implementation in my mind - need to keep track of where middleware is registered, reduceRight is non obvious. I expect these things to be standardized by the framework and all the sharp edges filed off - thats why I go to a framework in the first place. | ||||||||
|