Skip to content

[Plugin API] Wrong payload.uuid when executing onMacroRendererSlotted from query table #10021

@stdword

Description

@stdword

Search first

  • I searched and no similar issues were found

What Happened?

Related to onMacroRendererSlotted issue: #8904

payload.uuid points to wrong block uuid when executing onMacroRendererSlotted API call from query table

Demo

Reproduce the Bug

  1. Create a plugin and register handler to catch payload.uuid:
    logseq.App.onMacroRendererSlotted(async ({ slot, payload }) => { console.log(payload.uuid) }
    Or use 🏛 Full House Templates plugin to easily get block uuid within onMacroRendererSlotted event. I'll provide next steps with :view command from this plugin.
  2. Go to any page and create block with content: #test {{renderer :view, "c.block.uuid"}}
  3. Go to another page and create query [[test]]
  4. Switch query results to table view (list view has no bug)
  5. Wrong block uuid appeared in table

Expected Behavior

payload.uuid should always be the same original block with macro call

Desktop or Mobile Platform Information

MacOS v13.6
Logseq Desktop v0.9.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions