Start data from localStorage not working
pacocom opened this issue · comments
Francisco Javier Romero Conde commented
When component is initialize, data from localStorage is not reading:
See your example:
https://stackblitz.com/edit/react-vbrkjb?embed=1&file=index.js
Amit Solanki commented
Late reply, but it seems that the typeof getNum === 'number'
is false on the first run. Seems like there is some in consistency on how the data is converted.