Skip to content

fumblingfish/rdx-stack-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdx-stack-creator

import {initializeStack} from 'rdx-stack-creator'

export const {
   push,
   pop,
   popToKey,
   popToIndex,
   removeByKey,
   removeAll,
   createReducer
} = initializeStack('MY_STACK', 'stack') // suffix, stackKey

const stackreducer = createReducer({}) // add initial state

export default stackreducer

export const stackSelector = {
   getItems: (state) => state.stackReducer.get('stack')
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published