Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Example() {
- // Crap, we just made a Firebase query for each render instead of
- // what we wanted, a query set up on mount, and cleaned up on unmount
- const query = useQuery(db.collections('lots-of-stuff').limit(10000));
- return <ul>query.docs.map(x => (<li>{x}</li>));
- }
Add Comment
Please, Sign In to add comment