Forráskód Böngészése

uppy.io/docs/redux - mentioned that we can't persist Uppy state (#1793)

* uppy.io/docs/redux - mentioned that we can't persist Uppy state

* slight copy tweak and typography
Evgenia Karunus 5 éve
szülő
commit
d57052abf7
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      website/src/docs/redux.md

+ 4 - 0
website/src/docs/redux.md

@@ -30,6 +30,10 @@ const uppy = Uppy({
 })
 ```
 
+Keep in mind that Uppy state is not serializable (because we have to keep track of files with data blobs). So, if you persist your Redux state, you should exclude Uppy state from persistence.
+
+If you’d like to persist your Uppy state — please look into [@uppy/golden-retriever](https://uppy.io/docs/golden-retriever/). It’s a plugin created specifically for saving and restoring Uppy state, including selected files and upload progress.
+
 ## Redux Dev Tools
 
 This is a `ReduxDevTools` plugin that simply syncs with the [redux-devtools](https://github.com/gaearon/redux-devtools) browser or JS extensions, and allows for basic time travel: