Skip to main content

MeganeProviderProps

megane-viewer


megane-viewer / MeganeProviderProps

Interface: MeganeProviderProps

Defined in: stores/MeganeProvider.tsx:43

Properties

children

children: ReactNode

Defined in: stores/MeganeProvider.tsx:53


options?

optional options?: CreateMeganeStoresOptions

Defined in: stores/MeganeProvider.tsx:52

Options for the bundle the provider creates. Ignored when stores is passed.


stores?

optional stores?: MeganeStores

Defined in: stores/MeganeProvider.tsx:50

Use a bundle you built yourself with createMeganeStores(). Reach for this when the surrounding app needs to drive the viewer imperatively — calling stores.pipeline.getState().openFile(file) from an effect, say. Omit it and the provider creates (and owns) one bundle for its lifetime.