I want to fetch data from firebase. first await function is getting VALUE from database and second await function is getting data, which its object value is less or more than VALUE. How to tell javascript when finish the first await function and then start to execute second second await function?
React.useEffect(() => {
const catchValue = async () => {}
const catchDatabyValue = async () => {}
}, []);