Function MetadataSource

Provide a metadata store to useMetadataQuery, useFileMetadata and useAllMetadata for everything rendered inside.

<MetadataSource value={corpus.metadata}>
<Wiki />
</MetadataSource>

Nesting is allowed and the innermost provider wins; mode="merge" layers over whatever is in scope (an outer provider, else the host's store). Unmounting the provider restores the outer store — there is no registry to clean up, so an app cannot leak a stale source by forgetting to unregister.

The value is used as given: pass a stable reference (a useMemo, module state) if you care about the query hooks' identity-preservation, which is what keeps their results usable in dependency arrays.