Skip to content

Commit

Permalink
Removing Reducer Injectors
Browse files Browse the repository at this point in the history
  • Loading branch information
sharan-salian committed Apr 7, 2020
1 parent 8ae955f commit 18fa43a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 403 deletions.
5 changes: 0 additions & 5 deletions generators/container/index.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { compose } from 'redux'
{{#if wantSaga}}
import { useInjectSaga } from '@utils/injectSaga'
{{/if}}
{{#if wantActionsAndReducer}}
import { useInjectReducer } from '@utils/injectReducer'
import makeSelect{{properCase name}} from './selectors'
import reducer from './reducer'
{{/if}}
Expand All @@ -33,9 +31,6 @@ import saga from './saga'
{{/if}}

export function {{ properCase name }}() {
{{#if wantActionsAndReducer}}
useInjectReducer({ key: '{{ camelCase name }}', reducer })
{{/if}}
{{#if wantSaga}}
useInjectSaga({ key: '{{ camelCase name }}', saga })
{{/if}}
Expand Down
Loading

0 comments on commit 18fa43a

Please sign in to comment.