useWebInfo

useWebInfo(
	options?: WebInfoOptions,
	deps?: any[]): IWebInfo | null | undefined;

Returns current web.

Examples

Get current web info,

const currentWeb = useWebInfo();

Query current web properties,

const currentWeb = useWebInfo({
	query:{
		select: ["Title"]
	}
});

Parameters

NameTypeDescriptionTracked for changes
options?WebInfoOptionsuseWebInfo hook optionsPartially
deps?DependencyListHook dependency list.Yes