Skip to content

Make redux and react-redux optional peer dependencies #766

Open
@adamstankiewicz

Description

@adamstankiewicz

Currently, frontend-platform requires MFEs to install redux and react-redux even if the MFE doesn't use Redux. frontend-platform renders an OptionalReduxProvider component, where if no store prop is passed to <AppProvider> within the MFE, Redux's Provider is not rendered.

However, for MFEs that opt to NOT use Redux (e.g., frontend-app-learner-portal-enterprise), these peer dependencies are still required to install, even though they're not used.

Ideally, frontend-platform could denote these peer dependencies as being optional, handling it accordingly when the package is not installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions