When redux initializes it passes a couple of actions to each reducer.
This initialization was sets the "isReady" flag. If we have an
initial state coming from outside of the reducer, however, then on the
actual @@INIT pass the isReady flag would be true and the state be
defined even though it isn't actually initialized.
In this instance, use the preloadState function to pass in the initial
value so it's already set up for optimistic.
Coverage increased (+7.7%) to 92.308% when pulling a8b525fd29ef7735ecb1e8bbbeb2da511b3a64c8 on clayne11:preload into e443f0900ceaede36691d799efc6dfd12b048c86 on mattkrick:master.
Coverage increased (+7.7%) to 92.308% when pulling da3aa1d8997e69bdec98a5b91a1c9f1cef47fb3e on clayne11:preload into e443f0900ceaede36691d799efc6dfd12b048c86 on mattkrick:master.
When redux initializes it passes a couple of actions to each reducer. This initialization was sets the "isReady" flag. If we have an initial state coming from outside of the reducer, however, then on the actual @@INIT pass the isReady flag would be true and the state be defined even though it isn't actually initialized.
In this instance, use the preloadState function to pass in the initial value so it's already set up for optimistic.
Fixes #16