redux-form-material-ui
redux-form-material-ui copied to clipboard
Fix isStateLess()
Stateless components like e.g. this one https://github.com/dmtrKovalenko/material-ui-pickers/blob/master/lib/src/_shared/WithUtils.jsx#L5 don't even have a prototype because they are plain functions. So the old isStateLess() implementation failed with "Uncaught TypeError: Cannot read property 'render' of undefined."
Codecov Report
Merging #266 into 5.0 will not change coverage. The diff coverage is
100%.
@@ Coverage Diff @@
## 5.0 #266 +/- ##
=======================================
Coverage 66.66% 66.66%
=======================================
Files 8 8
Lines 24 24
=======================================
Hits 16 16
Misses 8 8
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/utils.js | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 9328e93...15c0e0f. Read the comment docs.
Friendly ping