UNPKG

remix-utils

Version:

This package contains simple utility functions to use with [React Router](https://reactrouter.com/).

9 lines (8 loc) 431 B
import { Batcher } from "@edgefirst-dev/batcher"; import { unstable_createSingletonMiddleware } from "./singleton.js"; /** * Create a middleware that provides a singleton of a Batcher class. * @returns A tuple containing the middleware function and a function to get the * batcher instance from the context. */ export declare function unstable_createBatcherMiddleware(): unstable_createSingletonMiddleware.ReturnType<Batcher>;