use-memo-one

v1.1.3
useMemo and useCallback but with a stable cache
memoization react useMemo useCallback memoize-one

validate

yarn run lint && yarn run typecheck

test

jest

typecheck

flow check

prettier:check

yarn prettier --debug-check $npm_package_config_prettier_target

prettier:write

yarn prettier --write $npm_package_config_prettier_target

lint:eslint

eslint src test

lint

yarn lint:eslint && yarn prettier:check

build

yarn run build:clean && yarn run build:dist && yarn run build:flow

build:clean

rimraf dist

build:dist

rollup -c

build:flow

echo "// @flow export * from '../src';" > dist/use-memo-one.cjs.js.flow

prepublish

yarn run build
npm i use-memo-one

Metadata

  • MIT
  • Whatever
  • Alex Reardon
  • released 8/31/2022

Downloads

Maintainers