✍️ We are working to prepare Suspensive v2 read more →
Documentation
@suspensive/react
<SuspensiveProvider/>

SuspensiveProvider

This component controls the settings of the components provided by Suspensive (Suspense, Delay, etc.) at once.

import { Suspensive, SuspensiveProvider } from '@suspensive/react'
 
const suspensive = new Suspensive({
  defaultOptions: {
    delay: {
      ms: 1200,
    },
    suspense: {
      fallback: <Spinner />,
      clientOnly: false,
    },
  },
})
 
function App() {
  return <SuspensiveProvider value={suspensive}>...</SuspensiveProvider>
}