Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #20

Merged
merged 28 commits into from
Dec 5, 2018
Merged

Dev #20

Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fetch favorites on load
  • Loading branch information
krestaino committed Dec 4, 2018
commit 48cc948440f3c8e7ec563de5411eb84cd9043ff5
4 changes: 4 additions & 0 deletions components/Favorites/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import List from '../List'
class Favorites extends Component {
onRefresh = () => this.props.getFavorites(this.props.favorites.symbols)

componentDidMount() {
this.props.getFavorites(this.props.favorites.symbols)
}

componentDidUpdate(prevProps) {
if (prevProps.favorites.symbols !== this.props.favorites.symbols) {
this.props.favorites.symbols.length
Expand Down