Closed ThibaudMZN closed 2 years ago
Use query()
like you would in a vanilla call to Firebase, i.e. instead of
useList(ref(database, 'list'));
something like
useList(query(ref(database, 'list'), orderByChild('someChild')));
Ah that wasn't so hard ! Thanks, maybe that could be somewhere in the docs :)
Hi !
Is there a way to use sorting and filtering in Realtime Database Hooks (
useList
for example), functions likeorderByChild()
orlimitToFirst()
?Thanks !