crooks
crooks copied to clipboard
useLocalStorage: initial function
If initial value for useLocalStorage
is a function, like in lazy useState
, it doesn't work:
let [value, setValue] = useLocalStorage(key, () => initialValue)
@dy Thanks for catching that, I'll get a fix for that pushed out shortly