useLoaderResult

A hook to retrieve the result of the loader. Use this in a route component of a route with a loader prop.

import { useLoaderResult } from 'react-sprout';

let loaderResult = useLoaderResult();
  • Name
    loaderResult
    Type
    any
    Description

    The result of the loader