Skip to content

Data Property Queries #13

Open
Open

Description

@dOrgJelli

Improve performance by accessing specific properties of a data object, instead of querying and storing the whole thing. For example, this would enable...

<DAO.Data.Name>
{name => (<div>{name}</div>)}
</DAO.Data.Name>

Activity

  1. added this to the MVP milestone on Apr 18, 2019
  2. dOrgJelli commented on Apr 20, 2019

    @dOrgJelli
    ContributorAuthor

    Additional thoughts, I don't know if this is worth it... it's kinda gross, and could be done with child templates (if they're a thing in jsx / tsx):

    <DAO.Data.Name>
      <div>{$dao.data.name}</div>
    </DAO.Data.Name>
  3. dOrgJelli commented on Apr 20, 2019

    @dOrgJelli
    ContributorAuthor
  4. dOrgJelli commented on Apr 10, 2020

    @dOrgJelli
    ContributorAuthor

    The syntax for this could be:

    <DAO.Data fields={["name", "members", "etc"]}>
    </DAO.Data>

    Implementing this would require changes within DAOstack's client, will make low-pri for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions