Skip to content

tasks without a preceding newline are ignored by datacore #147

@raphaelquast

Description

@raphaelquast

Let's consider the following datacore query and it's equivalent in dataview:

Datacore:

const COLUMNS = [{ id: "text", value: (task) => task.$text },];

return function View() {
    const tasks = dc.useQuery("@task and #test");
    return <dc.Table columns={COLUMNS} rows={tasks } />;
}

Dataview

TASK
FROM #test

I found that If there is no newline before a task, datacore seems to ignores the task!

A text before the task
- [ ] test #test ⏳ 2025-10-09 
Image

On the other hand, if I add a newline, datacore works as expected

A text before the task

- [ ] test #test ⏳ 2025-10-09 
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions