Skip to content

IncrementalFileIndexComponentConstructorParams.shouldAwaitMetadataChange?

IncrementalFileIndexComponentConstructorParams › shouldAwaitMetadataChange?

Type: (file: TFile) => boolean

Whether a create or modify of the file is followed by a metadata-cache changed event carrying its text, as for Markdown notes. Such a file drops its stale projection and is not read; its record returns with that event, or with the next startup or IncrementalFileIndexComponent.rescan when Obsidian raises none (a modify that left the content unchanged). Consumers must treat a file without a record as unknown. Defaults to never.