ryanjyost/react-simple-storage

Error with saving an array with one integer

Closed this issue · 2 comments

1gory commented

Hi, thanks for the lib.

When I trying to save an array with one integer value,
it is stored not as an array:
this.setState({ test: [1]})

console.log(this.state); // { test = 1; }

Sorry for the long response time - for some reason I get ZERO notifications for my own repo! Will look into this!

@1gory This should be fixed with the latest release, please let me know if not!