Closed sumanvyj closed 5 years ago
:exclamation: No coverage uploaded for pull request base (
master@17aa5bd
). Click here to learn what that means. The diff coverage is100%
.
@@ Coverage Diff @@
## master #231 +/- ##
=========================================
Coverage ? 79.26%
=========================================
Files ? 10
Lines ? 217
Branches ? 48
=========================================
Hits ? 172
Misses ? 30
Partials ? 15
Impacted Files | Coverage Δ | |
---|---|---|
src/modules/Status.js | 90.9% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 17aa5bd...0a955a9. Read the comment docs.
one last tweak to fix the type
!merge
Triggered Fusion.js build verification: https://buildkite.com/uberopensource/fusion-release-verification/builds/1561
When Status is rendered in the browser I get
TypeError: Cannot read property 'staticContext' of undefined
. It looks like this is because Status expectsrouter
to be present as a property ofcontext
. This is the case for ServerRouter but not for BrowserRouter.By destructuring with a default value of
{}
forrouter
,staticContext
is correctly set toundefined
whenrouter
doesn't exist.