Skip to content

Conversation

@xanthousphoenix
Copy link
Contributor

@madpotato This will fix state.items not updating when passed new items via props. The reason it was working in the demo is pass by reference. Fix should be self-explanatory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need the check, but better safe than sorry since the propTypes don't require the field. (That's actually something I feel should be changed everywhere in the repo. Add .isRequired to the end of propType declarations if it's a required prop.)

ivanbogdanov pushed a commit that referenced this pull request Oct 27, 2015
…with_new_props

Fixed the lookup not updating when props.items changes
@ivanbogdanov ivanbogdanov merged commit d8a44ee into master Oct 27, 2015
@donnieberg donnieberg deleted the gpinto_lookup_update_items_with_new_props branch December 17, 2015 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants