Skip to content

Commit 7ac0af5

Browse files
committed
🎨 Add comments to clarify the purpose of the onDataChanged method siyuan-note/siyuan#16244
1 parent 64148ee commit 7ac0af5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ export default class PluginSample extends Plugin {
258258
console.log("uninstall");
259259
}
260260

261+
// 使用 saveData() 存储的数据发生变更时触发,注释掉则自动禁用插件再重新启用
262+
// Triggered when data stored using saveData() changes. If commented out, the plugin will be automatically disabled and then re-enabled.
263+
// onDataChanged() {
264+
// console.log("onDataChanged");
265+
// }
266+
261267
async updateCards(options: ICardData) {
262268
options.cards.sort((a: ICard, b: ICard) => {
263269
if (a.blockID < b.blockID) {

0 commit comments

Comments
 (0)