Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.
This repository was archived by the owner on May 17, 2019. It is now read-only.

Pass Context to enhancers #101

Open
Open
@brendean

Description

@brendean

Redux store enhancers dont have a way to access Context.

Type of issue

Feature request

Description

I created a plugin to allow cookie manipulation on the browser and server and would like to be able to access that plugin in a redux middleware. The use case is to set a cookie when a certain action is fired. Unless I'm missing something I would need to have access to the Context when creating that middleware (in order to get the cookie plugin via dep/token).

Current behavior

Currently enhancers (besides ctxEnhancer) are not passed ctx, code here:

const enhancers = [enhancer, ctxEnhancer(ctx), devTool].filter(

Expected behavior

Enhancers are changed to be returned from a function that is passed Context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions