Skip to content

Releases: smeijer/spin-delay

v2.0.1

16 Aug 17:14
f76e32e
Compare
Choose a tag to compare

Patch Changes

  • f380792 Thanks @smeijer! - Fixes the initial delay used when options.ssr is false.

v2.0.0

13 Mar 20:37
e895caf
Compare
Choose a tag to compare

Major Changes

  • #8 1b81585 Thanks @smeijer! - We now support spinner initialization from the server (SSR). When the loading prop is true due to server-side rendering, the spinner will be shown immediately. You can opt-out of this behavior by setting the ssr option to false.

    import { useSpinDelay } from 'spin-delay';
    
    const spin = useSpinDelay(loading, {
      ssr: false, // defaults to true
    });
  • #6 3d4f4d5 Thanks @smeijer! - We've to removed the default export. Please update your code to use the named
    export instead. This is a breaking change, but it's a minor one. Chances are
    that you're already using the named export, and you don't have to do anything.

    - import useSpinDelay from 'spin-delay';
    + import { useSpinDelay } from 'spin-delay';