adventure-time | web based environment for doing nodeschool | Static Site Generator library
kandi X-RAY | adventure-time Summary
kandi X-RAY | adventure-time Summary
a web based environment for doing nodeschool adventures
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of adventure-time
adventure-time Key Features
adventure-time Examples and Code Snippets
Community Discussions
Trending Discussions on adventure-time
QUESTION
I try to list items that are loaded using the google places API. I receive the standard values without difficulty and are neatly read in the 'folder' function such as item.name, but I also want to use the photos. if in my 'componentWillMount' console.log (this.state.drinks [0] .photos [0] .photo_reference); ' output I get the right value. However, I cannot do this in the folder function. there I get the eroor: 'TypeError: undefined is not an object (evaluating' items.photos [0] ')'
My question is whether anyone knows how to manage a child of an object in the map function? I have to have the property 'Photos' in the object the property 'photo_reference'.
my code:
...ANSWER
Answered 2020-Mar-05 at 19:15ComponentWillMount() lifecycle method is deprecated and is unsafe to use. Use ComponentDidMount() instead.
Coming to your error: 'TypeError: undefined is not an object (evaluating' items.photos [0] ')'
Try doing:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install adventure-time
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page