Interface DittoContextProps

interface DittoContextProps {
    dittoHash: DittoHash;
    isLazy: boolean;
    load: ((appPath) => Promise<void | Ditto>);
    registerDitto?: RegisterDitto;
    unregisterDitto?: UnregisterDitto;
}

Properties

dittoHash: DittoHash
isLazy: boolean

True if the context is initialized through a DittoLazyProvider.

load: ((appPath) => Promise<void | Ditto>)

Provided only by the DittoLazyProvider. Will fail on the non-lazy DittoContext provider.

Type declaration

    • (appPath): Promise<void | Ditto>
    • Parameters

      • appPath: string

      Returns Promise<void | Ditto>

registerDitto?: RegisterDitto
unregisterDitto?: UnregisterDitto