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

Reuse action creator in other Fractal route container #1333

@neerajincaendo

Description

@neerajincaendo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions