uselocalStorage initised with provided initial value after read localStorage afterwards and update state inside useEffect.
It leads to unexpexted side effects. We should have control on initialisation.
Update lib version to 2.15 should fix the problem. as there is exptra param added to signature doing exactly what I needed.
{ initializeWithValue : boolean }.
uselocalStorage initised with provided initial value after read localStorage afterwards and update state inside useEffect. It leads to unexpexted side effects. We should have control on initialisation.