Skip to content

Commit 2455005

Browse files
authored
getVal missing 'data/' in path?
Hey I couldn't successfully get a query to work in my project following the **Query Based On Props** section. It worked once I added `data/` to the `getVal()` path so that `getVal(firebase, \`data/todos/${props.params.todoId}\`)` as per the example you outlined in [helpers#getVal](https://react-redux-firebase.com/docs/api/helpers.html#getval). Would this be an appropriate fix, or did I miss something?
1 parent c56f4da commit 2455005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const enhance = compose(
192192
]
193193
}),
194194
connect(({ firebase }, props) => ({
195-
todo: getVal(firebase, `todos/${props.params.todoId}`), // lodash's get can also be used
195+
todo: getVal(firebase, `data/todos/${props.params.todoId}`), // lodash's get can also be used
196196
}))
197197
)
198198

0 commit comments

Comments
 (0)