React - tracking prop between components for API keys

0 votes
196 views
added Jul 23 in React by lcjr Lieutenant (12,520 points)

The value for {listing?.field_prop_asking_price?.und?.[0]?.value} in this line, ...comes from the listing prop passed into the lightModal component. This is defined in the props interface:

interface lightModalProps {
  ...
  listing?: any;
}

 

So to find the source of listing, you need to check where lightModal is being used, and see what is being passed into the listing prop. For example:

<lightModal listing={someListingObject} ... />

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...