use-dark-mode icon indicating copy to clipboard operation
use-dark-mode copied to clipboard

Types: Allow passing lazy initial state getter

Open tom-sherman opened this issue 3 years ago • 2 comments

This argument is passed to useState and therefore can accept a lazy initial state getter. I've had to @ts-ignore some usage of the hook so that I can pass a function here.

See https://github.com/NorfolkDev/norfolkdevelopers-website/blob/39c988376c38976f9eaa2dfac3638c6fd938ec14/src/components/DarkModeToggle.tsx#L7-L10

tom-sherman avatar Mar 29 '21 10:03 tom-sherman

@donavon Could you take a look at this please?

tom-sherman avatar Apr 12 '21 08:04 tom-sherman

@donavon Just a gentle ping, could you review this please?

tom-sherman avatar May 18 '21 13:05 tom-sherman