logseq-automatic-linker icon indicating copy to clipboard operation
logseq-automatic-linker copied to clipboard

fix: Prevent multiple executions of db.onChanged callback

Open braladin opened this issue 6 months ago • 0 comments

Issue

When we change a block, logseq.DB.onChanged gets called multiple (3) times.

Solution

This commit adds a guard clause to prevent executing the callback function multiple times for a single block change.

braladin avatar Apr 06 '25 19:04 braladin