API reference > @kontsedal/olas-core > RootOptions
RootOptions type
Configuration passed to createRoot(def, options). deps is required and available everywhere as ctx.deps. onError receives errors from effects, mutations, caches, emitter handlers, and construction. hydrate replays aDehydratedState produced on the server. Spec §20.8.
Signature:
typescript
type RootOptions<TDeps> = {
deps: TDeps;
onError?: (err: unknown, context: ErrorContext) => void;
hydrate?: DehydratedState;
queries?: QueryEngine;
plugins?: readonly OlasPlugin[];
scopes?: ReadonlyArray<readonly [Scope<unknown>, unknown]>;
};References: ErrorContext, DehydratedState, QueryEngine, OlasPlugin, Scope