title: Using React.js props on Redux's 'compose'
body: <p>I am using react-redux-firebase and firestoreConnect to get information from my database and map it into props vía their premade reducer. To connect its information to my Component, I use the 'compose' method in the following way:</p>
  
  <pre><code>export default compose(
     connect(mapStateToProps, mapDispatchToProps),
     firestoreConnect([
        {
           collection: 'questions',
           doc: this.props.match.params.id,
           subcollection: 'messages',
        }
     ])
  )(QuestionDetail);
  </code></pre>
  
  <p>As you can see, I am trying to access a specific document with an ID that was passed to the component as a prop from its parent. However, 'this' is undefined in the context of 'compose' and I therefore can't use it to access the props, and my parameter.</p>
  
  <p>Is there any other way I can access the id passed to the component so I can request it to Firestore?</p>