Interface DittoLazyProviderProps

interface DittoLazyProviderProps {
    children?: RenderFunction;
    initOptions?: InitOptions;
    render?: RenderFunction;
    setup: ((appPath) => Promise<Ditto>);
}

Properties

children?: RenderFunction
initOptions?: InitOptions
setup: ((appPath) => Promise<Ditto>)

This function is called whenever a child component uses a Ditto instance through the useDitto hook and the instance needs to be created.

Type declaration

    • (appPath): Promise<Ditto>
    • Parameters

      • appPath: string

      Returns Promise<Ditto>

Returns

A Ditto instance initialized on the given path