-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
:type/bugSomething isn't working. Affects daily use.Something isn't working. Affects daily use.plugins
Description
Search first
- I searched and no similar issues were found
What Happened?
payload.uuidis empty when executingonMacroRendererSlottedAPI call inside:macro
Demo
Reproduce the Bug
- Create
:macroinconfig.edn:

- Create a plugin with API call:

- Open Logseq with running plugin
- Open DevTools → Console
- Create a block with
{{test}}content - Console output reflect the problem:

Expected Behaviour
payload.uuidhas the uuid value of the block rendering occurs for. Just like now for non-macro case (see the gif demo)- However now this bug could be used to distinguish rendering state: inside macro or not → it would be nice to have a flag for that purpose when bug will be fixed:
payload.isInsideMacro:boolean
Desktop or Mobile Platform Information
- MacOS latest
- Desktop Logseq v0.8.18
- @logseq/lib v0.0.14
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
stdword
Metadata
Metadata
Assignees
Labels
:type/bugSomething isn't working. Affects daily use.Something isn't working. Affects daily use.plugins
