redux-form-material-ui icon indicating copy to clipboard operation
redux-form-material-ui copied to clipboard

Fix isStateLess()

Open Philipp91 opened this issue 7 years ago • 2 comments

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."

Philipp91 avatar Jul 19 '18 19:07 Philipp91

Codecov Report

Merging #266 into 5.0 will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           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 data Powered by Codecov. Last update 9328e93...15c0e0f. Read the comment docs.

codecov[bot] avatar Jul 19 '18 19:07 codecov[bot]

Friendly ping

Philipp91 avatar Aug 01 '18 10:08 Philipp91