Save the Authenticity Token into context
// Add `<AuthenticityTokenProvider>` wrapping your Outletlet { csrf } = useLoaderData<typeof loader>();return ( <AuthenticityTokenProvider token={csrf}> <Outlet /> </AuthenticityTokenProvider>) Copy
// Add `<AuthenticityTokenProvider>` wrapping your Outletlet { csrf } = useLoaderData<typeof loader>();return ( <AuthenticityTokenProvider token={csrf}> <Outlet /> </AuthenticityTokenProvider>)
Save the Authenticity Token into context