Releases: smeijer/spin-delay
Releases · smeijer/spin-delay
v2.0.1
v2.0.0
Major Changes
-
#8
1b81585
Thanks @smeijer! - We now support spinner initialization from the server (SSR). When theloading
prop istrue
due to server-side rendering, the spinner will be shown immediately. You can opt-out of this behavior by setting thessr
option tofalse
.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';