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.
Provide a metadata store to
useMetadataQuery,useFileMetadataanduseAllMetadatafor everything rendered inside.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.