react-use-resource
Version:
Convert a promise returning function into a suspense compatible resource.
11 lines (10 loc) • 347 B
TypeScript
import * as React from 'react';
interface IResourcesBoundaryProps {
children: React.ReactNode;
/**
* If present, all data will be written to and read from this record.
*/
cache?: Record<string, any>;
}
export declare function ResourcesBoundary({ children, cache }: IResourcesBoundaryProps): JSX.Element;
export {};