MeganeProviderProps
megane-viewer / MeganeProviderProps
Interface: MeganeProviderProps
Defined in: stores/MeganeProvider.tsx:43
Properties
children
children:
ReactNode
Defined in: stores/MeganeProvider.tsx:53
options?
optionaloptions?:CreateMeganeStoresOptions
Defined in: stores/MeganeProvider.tsx:52
Options for the bundle the provider creates. Ignored when stores is passed.
stores?
optionalstores?: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.