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): EventRefParameters:
| 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: EventRef — The event reference.
Example:
app.metadataCache.on('resolved', () => { console.log('All files have been resolved');});