Skip to content

MetadataCache.on('resolved') method

MetadataCache › on(‘resolved’)

Official

Called when all files has been resolved. This will be fired each time files get modified after the initial load.

Signature:

on(name: "resolved", callback: () => unknown, ctx?: unknown): EventRef

Parameters:

Parameter Type Description
name "resolved" Should be 'resolved'.
callback () => unknown The callback function.
ctx? unknown The context passed as this to the callback function.

Returns: EventRefThe event reference.

Example:

app.metadataCache.on('resolved', () => {
console.log('All files have been resolved');
});