Closed magicmark closed 7 years ago
In trying to add some logging middleware, I noticed that res.statusCode is not set.
res.statusCode
(curl: http://i.imgur.com/Ch5f2gM.png)
I presume this is an unintended bug? Looks like status is set here: https://github.com/airbnb/hypernova/blob/master/src/utils/renderBatch.js#L20
status
Ah, just read this, looks like this is intentional. (I guess since it's only 1 component in the batch that errored, others could succeed).
Closing.
In trying to add some logging middleware, I noticed that
res.statusCode
is not set.(curl: http://i.imgur.com/Ch5f2gM.png)
I presume this is an unintended bug? Looks like
status
is set here: https://github.com/airbnb/hypernova/blob/master/src/utils/renderBatch.js#L20