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
Description
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:
fusion-plugin-react-redux/src/browser.js
Line 44 in 593de8e
Expected behavior
Enhancers are changed to be returned from a function that is passed Context.
Metadata
Metadata
Assignees
Labels
No labels