Skip to content

PluginDataHandler.loadData method

PluginDataHandler › loadData

Loads data from the plugin's data file.

The file's size is read through the adapter BEFORE Obsidian reads and parses it, so an oversized file is never loaded into memory. When Obsidian answers undefined or null, the file is read raw and parsed here, because Obsidian answers undefined for a file that exists but does not parse too.

Signature:

loadData(): Promise<unknown>

Returns: Promise<unknown> — The loaded data.