You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
How can I receive props from parent component (actually from redux store's connect HOC) inside Transmit.createContainer?
Given a scenario like below:
// UserList.jsclassUserListextendsComponent{render(){returnthis.props.users.map(/* ... */);}}exportdefaultTransmit.createContainer(UserList,{/* how to receive props (page, dispatch, foo, bar, ...etc.) here? */fragments: {users(queryParams){return()=>userAPI.list({page: pageFromProps,// fetch data depending on props}).then(users=>{dispatchFromProps(receiveUsers(users));// dispatch action creator to update storereturnusers;});},},});
How can I receive
props
from parent component (actually from redux store'sconnect
HOC) insideTransmit.createContainer
?Given a scenario like below:
The text was updated successfully, but these errors were encountered: