Skip to content

Releases: alexreardon/use-memo-one

1.1.3

31 Aug 23:26
Compare
Choose a tag to compare
  • Allowing react@18 as a react peerDependency. Thanks @framp!
  • Moving to github actions. Thanks @denis-sokolov!

1.1.2

25 Jan 00:14
Compare
Choose a tag to compare
  • Adding react@17 to the react peer dependency range. Thanks @lourd!
  • Fixing issue where the getResult() function could be called twice for a render when inputs was undefined. Thanks @aleclarson!!

Previously this would cause the getResult function to be called twice on the first render

useMemo(() => console.log('called'), /* no input array */);

// console.log → 'called'
// console.log → 'called'

Now getResult is only called once

useMemo(() => console.log('called'), /* no input array */);

// console.log → 'called'

1.1.1

09 Jul 06:02
Compare
Choose a tag to compare
  • Updating node version
  • Bumping all dev dependencies #7
  • Upgrading to flow@0.102.0 #7

1.1.0

17 Apr 07:31
Compare
Choose a tag to compare
  • Exposing alias: useMemoOne => useMemo and useCallback => useCallbackOne to allow drop in replacement of useMemo and useCallback from react;
import {useMemoOne, useCallbackOne} from 'use-memo-one';

// additional new aliases
import {useMemo, useCallback} from 'use-memo-one';
  • new documentation section containing linting suggestions

1.0.1

08 Apr 04:35
Compare
Choose a tag to compare