Skip to content

Instantly share code, notes, and snippets.

@s3thi
Created September 18, 2018 08:41
Show Gist options
  • Save s3thi/311d357252f369dc6d5c24adbac0c268 to your computer and use it in GitHub Desktop.
Save s3thi/311d357252f369dc6d5c24adbac0c268 to your computer and use it in GitHub Desktop.
export default compose(
connect(state => ({
lifeAreasByKey: state.firestore.data.life_areas,
lifeAreasOrdered: state.firestore.ordered.life_areas,
})),
firestoreConnect(props => [
{ collection: "life_areas", where: [["user_id", "==", props.auth.uid]] }
])
)(MyApp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment