Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import useStoreQuery from './useStoreQuery'
- const ActiveUsers = ({ storeQuery, storeQueryLoading }) => {
- const { users, loading } = useStoreQuery('users', { where: { active: true } })
- return (
- <div>{loading ? 'Loading...' : `${users.length} active users found`}</div>
- )
- }
- export default ActiveUsers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement