|
|
@ -1,6 +1,6 @@
|
|
|
|
import React, { createContext, useContext, useMemo, useReducer } from 'react'
|
|
|
|
import React, { createContext, useContext, useMemo, useReducer } from 'react'
|
|
|
|
|
|
|
|
|
|
|
|
/** Takes objects that fully define a store and turns it into a more potent reducer */
|
|
|
|
/** Takes options that fully define a store and turns it into a more potent reducer */
|
|
|
|
export const usePotentReducer = options => {
|
|
|
|
export const usePotentReducer = options => {
|
|
|
|
const { reducer = {}, thunks = {}, initialState } = options
|
|
|
|
const { reducer = {}, thunks = {}, initialState } = options
|
|
|
|
const { onUpdate, logging } = options
|
|
|
|
const { onUpdate, logging } = options
|
|
|
|