tectonic
tectonic copied to clipboard
Add filtering to queries, enabling components to select only data they
Fixes https://github.com/tonyhb/tectonic/issues/95
For example:
@load({
email: User.getItem().filter((user) => user.email)
})
class EmailAddress extends PureComponent {
props: {
email: string
}
}
Or:
@load({
emails: User.getList().filter((users) => users.map(u => u.email))
})
class EmailAddress extends PureComponent {
props: {
email: Array<string>
}
}
I'd like to revisit propinspector before merging this. Looking at it i'm not certain the while
is sound.