You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-40Lines changed: 30 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,15 @@ The [Material Example](https://github.com/prescottprue/react-redux-firebase/tree
20
20
21
21
## Features
22
22
23
-
* Out of the box support for authentication (with auto loading user profile from database/firestore)
24
-
* Full Firebase Platform Support Including Real Time Database, Firestore, and Storage
25
-
* Automatic binding/unbinding of listeners through React Hooks (`useFirebaseConnect`, `useFirestoreConnect`) or Higher Order Components (`firebaseConnect` and `firestoreConnect`)
26
-
*[Population capability](http://react-redux-firebase.com/docs/populate) (similar to mongoose's `populate` or SQL's `JOIN`)
27
-
* Support small data ( using `value` ) or large datasets ( using `child_added`, `child_removed`, `child_changed` )
* Tons of examples of integrations including [`redux-thunk`](https://github.com/gaearon/redux-thunk) and [`redux-observable`](https://redux-observable.js.org/)
30
-
* Server Side Rendering Support
31
-
*[`react-native` support](http://react-redux-firebase.com/docs/integrations/react-native.html) using [native modules](http://react-redux-firebase.com/docs/integrations/react-native.html#native-modules) or [web sdk](http://react-redux-firebase.com/docs/integrations/react-native.html#jsweb)
23
+
- Out of the box support for authentication (with auto loading user profile from database/firestore)
24
+
- Full Firebase Platform Support Including Real Time Database, Firestore, and Storage
25
+
- Automatic binding/unbinding of listeners through React Hooks (`useFirebaseConnect`, `useFirestoreConnect`) or Higher Order Components (`firebaseConnect` and `firestoreConnect`)
26
+
-[Population capability](http://react-redux-firebase.com/docs/populate) (similar to mongoose's `populate` or SQL's `JOIN`)
27
+
- Support small data ( using `value` ) or large datasets ( using `child_added`, `child_removed`, `child_changed` )
- Tons of examples of integrations including [`redux-thunk`](https://github.com/gaearon/redux-thunk) and [`redux-observable`](https://redux-observable.js.org/)
30
+
- Server Side Rendering Support
31
+
-[`react-native` support](http://react-redux-firebase.com/docs/integrations/react-native.html) using [native modules](http://react-redux-firebase.com/docs/integrations/react-native.html#native-modules) or [web sdk](http://react-redux-firebase.com/docs/integrations/react-native.html#jsweb)
32
32
33
33
## Installation
34
34
@@ -147,7 +147,7 @@ export default function Todos() {
If you would like a project added to this section please reach out [over gitter][gitter-url]
285
-
286
280
### [Examples Folder](examples)
287
281
288
282
Examples folder is broken into two categories [snippets](examples/snippets) and [complete](examples/complete). `/complete` contains full applications that can be run as is, where as `/snippets` contains small amounts of code to highlight specific functionality (dev tools and deps not included).
@@ -311,16 +305,16 @@ Join us on the [redux-firebase gitter](https://gitter.im/redux-firebase/Lobby).
Note: In an effort to keep things simple, the wording from this explanation was modeled after [the installation section of the Redux Docs](https://redux.js.org/#installation).
@@ -364,12 +360,6 @@ This project exists thanks to all the people who contribute.
Copy file name to clipboardExpand all lines: docs/recipes/upload.md
+35-11Lines changed: 35 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ This example component uses `react-dropzone` to allow for drag/drop uploading di
7
7
**NOTE:** The third argument provided to the `uploadFiles` and `deleteFiles` calls below is the database path where File Metadata will be written/deleted from. This is out of convenience only, simply remove the third argument if you don't want metadata written/deleted to/from database.
// default factory includes name, fullPath, downloadURL
79
83
return {
80
84
name,
@@ -84,3 +88,23 @@ const config = {
84
88
}
85
89
}
86
90
```
91
+
92
+
### Update Firestore Document
93
+
94
+
If using Firestore for you database and you would like to update a specific document after a file has uploaded you can specify the `options.documentId` property. In this example the document with id `12345` in the `contacts` collection will have the `fileUrl` property updated with the file's download url. More details can be found in the [upload file](https://firebase.google.com/docs/storage/web/upload-files#add_file_metadata) section of the Firebase docs.
0 commit comments