Contents
- ⚠️ Deprecations
- Deprecate ICreateAndLoadContainerProps in favor of composable building blocks (#27347)
⚠️ Deprecations
Deprecate ICreateAndLoadContainerProps in favor of composable building blocks (#27347)
ICreateAndLoadContainerProps is now @deprecated. It remains as a structurally-identical alias and the props types that previously extended it (ILoadExistingContainerProps, ICreateDetachedContainerProps, IRehydrateDetachedContainerProps) now extend the building blocks directly, so no caller migration is required for those.
Callers writing new props types should compose from the building blocks directly:
import type {
IContainerHostProps,
IContainerDriverServices,
} from "@fluidframework/container-loader/legacy";
// Equivalent to the old ICreateAndLoadContainerProps
type MyProps = IContainerHostProps & IContainerDriverServices;
// Add only what you need
interface MyHostOnlyProps extends IContainerHostProps {
readonly extraOption: boolean;
}IContainerHostPropscovers the code loader plus optional policy / observability fields (options,scope,logger,configProvider,protocolHandlerBuilder,allowReconnect,clientDetailsOverride).IContainerDriverServicescovers theurlResolver+documentServiceFactorypair.
ICreateAndLoadContainerProps will be removed in a future major release.
Change details
Commit: 4091373
Affected packages:
- @fluidframework/container-loader
⬆️ Table of contents
🛠️ Start Building Today!
Please continue to engage with us on GitHub Discussion and Issue pages as you adopt Fluid Framework!