martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

Update state when receiving new props #240

Closed jeroencoumans closed 9 years ago

jeroencoumans commented 9 years ago

I'm creating a component that uses createContainer for fetching data from a store. The fetch is dependent on the props I pass in (e.g. date). This change will make sure that prop-dependent fetches will re-execute when props change.

jhollingworth commented 9 years ago

Hey, thanks for the PR. Happy to submit however linting is failing due to nextProps not being used. Can you remove it please?

jeroencoumans commented 9 years ago

Done :)

jhollingworth commented 9 years ago

:+1: thanks