-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Redux-thunk has a feature where you can inject a custom argument.
I think this library can support the same feature if it were implemented like so:
helpers/useThunkReducer.js
import { withExtraArgument } from 'react-hook-thunk-reducer';
import BrowserApp from '../BrowserApp';
export default withExtraArgument({ app: new BrowserApp() });An implementation of this might look like thus:
const saveData = (dispatch, getState, { app }) => {
app.localStorage.setItem('data', JSON.stringify(data));
};Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request