Closed Jascha-Sundaresan closed 6 years ago
Initialize w/o props is cripplingly difficult to use.
Passing in props by default allows for loading resources based on a router match:
initialize: (effects, props) -> Api.find('user', props.match.params.userName) .then (result) -> mergeIntoState user: Immutable.fromJS(result)
Awesome! thanks!
Initialize w/o props is cripplingly difficult to use.
Passing in props by default allows for loading resources based on a router match: