Quickadd and Events: The task.created event triggers more than once
#2012
Unanswered
BlueScreen32
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm writing a Quickadd script that runs when Obsidian starts. The script's purpose is to perform an action when a new task is created, but I'm noticing unexpected behavior that I'm not sure is normal, a mistake in my code, or a bug.
Code:
By subscribing to the
task.createdevent and creating a new task, the event is triggered more than once.create.task.mp4
Another strange thing is that when the task's status changes, the
task.status.changedevent triggered along with thetask.createdevent. Shouldn't thetask.createdevent only fire when a task is created?change.status.mp4
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions