Returning counting result from Firebase Query

Advertisements I try to get the amount of rows in my Firebase. But is says cannot find counter in scope on line return counter. extension FourthTabFirstView: UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { let ref = database.child("placeID") ref.observe(.value, with: { (snapshot: DataSnapshot!) in print(snapshot.childrenCount) let counter = snapshot.childrenCount }) return… Read More Returning counting result from Firebase Query

Reload an array of objects depending on search input value using React Hooks

Advertisements I want to reload an array of objects and make it appear based on the search input value. For example, there’s a search input and a list of reviews(title + comment). When the user types "a" in the search input, the list will be reloaded and give you the lists that includes "a" in… Read More Reload an array of objects depending on search input value using React Hooks