Class: Feed

Feed()

Feed Component, shows latest post of buddies.

Constructor

new Feed()

Source:

Methods

componentDidMount()

Sets fetchFeed() function to call every 5000ms

Source:

componentWillUnmount()

When the user leaves this component, the fetchFeed() schedule is stopped, so that it doesn't run in background while user is exploring other components.

Source:

fetchFeed()

Fetches latest posts from users who are in same circle, and updates the state of the component accordingly. This function is scheduled to run every 5000ms to fetch latest content.

Source:

render()

Renders the input form based on state of the component.

Source: