Note above, that I have a reducer called entities. This is state managed by normalizr, but will serve as the initial state for a few forms I need to build. Consider the following <Form /> instance:
This correctly renders the data in a text field. If I change the contents of the text field, the value in my redux store is successfully mutated. However, when I inspect the redux state that is managed by rrf, I notice that the initialValue property for the field I have mutated shows an incorrect value:
In my entities state, the value of this name field is never null. Why would it be null here?
This hasn't caused me problems yet, but this seems like a bug. I would expect the initialValue to be equal to the original value of the property that existed in the redux state.
The Problem
Here's a simplified version of my
createStore
function:Note above, that I have a reducer called
entities
. This is state managed by normalizr, but will serve as the initial state for a few forms I need to build. Consider the following<Form />
instance:This correctly renders the data in a text field. If I change the contents of the text field, the value in my redux store is successfully mutated. However, when I inspect the redux state that is managed by
rrf
, I notice that theinitialValue
property for the field I have mutated shows an incorrect value:In my
entities
state, the value of thisname
field is never null. Why would it be null here?This hasn't caused me problems yet, but this seems like a bug. I would expect the
initialValue
to be equal to the original value of the property that existed in the redux state.