There isn't & I haven't decided if there should need to be in 1.0...
This is because res.locals is just an object. It only has special meaning in the context of view/template rendering. Polka won't have template rendering (by default) so I'm not sure how this should play out.
polka()
.use((req, res, next) => {
res.locals = {}
next();
})
Most helpful comment
There isn't & I haven't decided if there should need to be in 1.0...
This is because
res.localsis just an object. It only has special meaning in the context of view/template rendering. Polka won't have template rendering (by default) so I'm not sure how this should play out.