prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

Non-matching example in Queries doc page (limitToFirst) #935

Closed codedpills closed 4 years ago

codedpills commented 4 years ago

On the Queries page, in the Query Params section, under limitToFirst, the code in the second example does not match the example being demonstrated.

  1. Displaying only the first 10 todo items
firebaseConnect([
 { path: '/todos', queryParams: [ 'orderByChild=createdBy', 'equalTo=123' ] }
 // '/todos#limitToFirst=10' // string notation
])

The code example with the object notation has no limitToFirst param passed in at all. Instead shows example for orderByChild and equalTo params.