import { useEffect } from 'react'
import { bootstrapCSRF } from '../api/client'

// Call once at the root of the app to prime the CSRF cookie before any mutations.
export function useCSRFBootstrap() {
  useEffect(() => {
    bootstrapCSRF()
  }, [])
}
