Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <Search /> #7

Closed
hnordt opened this issue Sep 6, 2016 · 0 comments
Closed

Implement <Search /> #7

hnordt opened this issue Sep 6, 2016 · 0 comments
Assignees
Milestone

Comments

@hnordt
Copy link
Owner

hnordt commented Sep 6, 2016

Proposed API:

const searchQuery = {
  name: 'h',
  age: { $gt: 17, $lt: 66 },
  likes: { $in: ['react', 'jsx'] }
}

const App = () => (
  <Fetch path="/users">
    {({ data: users }) => (
      <Search dataSource={users} query={searchQuery}>
        {({ results: filteredUsers }) => (
          <UserList users={filteredUsers}  />
        )}
      </Search>
    )}
  </Fetch>
)

Feedback: https://twitter.com/hnordt/status/773241068548685824

@hnordt hnordt added this to the v1 milestone Sep 6, 2016
@hnordt hnordt self-assigned this Sep 6, 2016
@hnordt hnordt closed this as completed Sep 6, 2016
@hnordt hnordt reopened this Sep 6, 2016
@hnordt hnordt closed this as completed Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant