The branch HOC handles mapping comparison incorrectly:
It does not properly hydrate the initial state, which causes mapping to remain undefined,
It updates the mapping values using the stale undefined mapping, which causes every comparison with a non-undefined mapping to return new state values.
The branch HOC handles mapping comparison incorrectly: