react-reducer-store
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -51,3 +51,3 @@ 'use strict'; | ||
function Store(props) { | ||
var initialState = props.rootReducer(props.initialValue, { | ||
var initialState = props.rootReducer(props.initialValue || {}, { | ||
type: '__INIT__' | ||
@@ -54,0 +54,0 @@ }); |
@@ -44,3 +44,3 @@ import React, { createContext, useReducer, useContext } from 'react'; | ||
function Store(props) { | ||
var initialState = props.rootReducer(props.initialValue, { | ||
var initialState = props.rootReducer(props.initialValue || {}, { | ||
type: '__INIT__' | ||
@@ -47,0 +47,0 @@ }); |
{ | ||
"name": "react-reducer-store", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.esm.js", |
39624