3 ms·
To add to that, validating response types[1] beyond the I/O boundaries is also rather silly. [1] Second example here: https://www.smashingmagazine.com/2021/08/
by graftak 5y ago
To add to that, validating response types[1] beyond the I/O boundaries is also rather silly.
[1] Second example here: https://www.smashingmagazine.com/2021/08/build-resilient-javascript-ui/#prevention-is-better-than-cure https://www.smashingmagazine.com/2021/08/build-resilient-jav...
- ramesh31 5y agoRight. Rather than checking if the array exists, his hook should just always be returning an empty array. The map would then do nothing and his component would never even try to render.