Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Reuse action creator in other Fractal route container #1333

Open
neerajincaendo opened this issue Oct 11, 2017 · 0 comments
Open

Reuse action creator in other Fractal route container #1333

neerajincaendo opened this issue Oct 11, 2017 · 0 comments

Comments

@neerajincaendo
Copy link

Hello,
how can reuse reducer actions of one Fractal route into another Fractal route container.

import { fetchExpertProfile} from '../modules/dashboard';
import { getTasks } from '../../ExpertDashboard/modules/dashboard';

const mapDispatchToProps = (dispatch) => { return ({ fetchExpertProfile: () => dispatch(fetchExpertProfile()), getTasks: (payload) => dispatch(getTasks(payload)) }); };

const mapStateToProps = (state) => ({ taskList: state.dashboard.taskList, isFetching: state.managerDashboard.isFetching, isAuthenticated: state.managerDashboard.isAuthenticated });

For this i want to use getTask() from another reducer but getting an error.

Please Help ASAP.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant