astoilkov/use-local-storage-state

Usage Example contains "ssr: true", which does not appear to be a valid option

dkershner6 opened this issue · 1 comments

Main README

import useLocalStorageState from 'use-local-storage-state'

export default function Todos() {
    const [todos, setTodos] = useLocalStorageState('todos', {
        ssr: true, <---------------
        defaultValue: ['buy avocado', 'do 50 push-ups']
    })
}

🤦‍♂️

Fixed with 5851612.

Only use-local-storage-state version 17 and below have this option. This is because for React 18 support there isn't a need for an option — it's automatic.

Thanks for reporting!