react-persist icon indicating copy to clipboard operation
react-persist copied to clipboard

Allows use of sessionStorage

Open SimplyComplexable opened this issue 6 years ago • 0 comments

Problem Need the ability to specify if sessionStorage or localStorage should be used.

Solution Add boolean prop useSessionStorage which is then used to determine the storage type to use.

Additional

  • Updates componentWillReceiveProps to componentDidUpdate.
  • Removes unnecessary null check.

SimplyComplexable avatar May 25 '19 02:05 SimplyComplexable