January 2019
Intermediate to advanced
592 pages
14h 30m
English
In step 2, we created the config object for configuring redux-persist. The object is only required to have the key and store properties, but also supports quite a few others. You can see all of the options this config takes via the type definition hosted here: https://github.com/rt2zz/redux-persist/blob/master/src/types.js#L13-L27.
In step 7, we used the PersistGate component, which is how the documentation recommends delaying rendering until restoring persisted data is complete. If we have a loading indicator component, we can pass it to the loading prop for being displayed while data is restored.
Read now
Unlock full access