Skip to content

Releases: SukkaW/foxact

0.2.38

08 Sep 19:30
Compare
Choose a tag to compare

Core Changes

  • Add useIsOnline, usePageVisibility and useTypeScriptHappyCallback

0.2.36

12 Jul 10:04
Compare
Choose a tag to compare

0.2.36

Core Changes

  • Add foxact/types
  • createFixedArray now supports GC-friendly array creation when WeakRef is available
    • Created array will be garbage-collected if not used (e.g. all components that use the array are unmounted)

0.2.35

07 Jun 08:26
Compare
Choose a tag to compare

Misc Changes

  • Improve the types of useLocalStorage and useSessionStorage.

0.2.34

05 Jun 11:44
Compare
Choose a tag to compare

Core Changes

  • Add useMediaQuery

  • useCompositionInput now supports <textarea />

    export const Example2 = () => {
      const textareaProps = useCompositionInput<HTMLTextAreaElement>(useCallback((value: string) => {
        // Do something with the value
      }, []));
    
      return (
        <textarea
          {...textareaProps}
          // useCompositionInput is uncontrolled, so you might need to provide defaultValue
          defaultValue={defaultValue}
        />
      );
    }

0.2.28

26 Dec 08:36
Compare
Choose a tag to compare

Core Changes

  • Add invariant function
  • Add nullthrow function
  • Re-implement unstable_useUrlHashState

0.2.27

26 Dec 08:36
Compare
Choose a tag to compare

Core Changes

  • Add useSessionStorage
  • Improve performance of noSSR

0.2.26

26 Dec 08:35
Compare
Choose a tag to compare

Core Changes

  • Allow the deserializer of useLocalStorage to return an un-memoized value

0.2.25

26 Dec 08:35
Compare
Choose a tag to compare

Core Changes

  • Allow customizing the useLocalStorage's serializer and deserializer

0.2.24

26 Dec 08:35
Compare
Choose a tag to compare

Core Changes

  • Make noSSR only throw on the server

0.2.23

07 Nov 07:25
Compare
Choose a tag to compare

Core Changes

  • Add unstable_useUrlHashState
  • Add useLocalStorage
  • Add noSSR