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

A custom React Hook to help you implement a "dark mode" component.

Results 49 use-dark-mode issues
Sort by recently updated
recently updated
newest added

Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19. Commits 9a6faa0 4.4.19 70ef812 drop dirCache for symlink on all platforms 3e35515 4.4.18 52b09e3 fix: prevent path escape using drive-relative paths bb93ba2 fix: reserve...

dependencies

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

The dark mode on my Next.js app still flashes even with adding noflash.js. I have made a dark mode component like so: ``` import useDarkMode from "use-dark-mode"; import { FiMoon...

I might be wrong here but the question mark in `storageKey?` infers the value to be a `string` or `undefined`. The documentation says it's possible for the value to be...

Hi, i'm using gatsby here. I found out that the [`toggle`](https://github.com/donavon/use-dark-mode/blob/29590271bb3a74f08975181c5ed68bd5a210ef83/src/index.js#L51) didn't work well with `` `onChange`. It requires 2 clicks for state changes. This behaviour occurs when we reload...

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...

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.1 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...

dependencies

Since we can both read from localStorage and find the media query value synchronously at startup, the flash situation could be avoided if there's no server-side rendering or static site...