Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Showing Blank Page when I delete document using Firebase

Whenever I delete a document, my code breaks and shows a blank page

const dispatch = useDispatch();
    const roomId = useSelector(selectRoomId);
    const [roomDetails] = useDocument(
        roomId && db.collection('rooms').doc(roomId)
    )

    const deleteChannel = () => {
        const answer = window.confirm(`Do you reall want to delete ${roomDetails?.data().name}`)
        if (answer) {
            console.log('We can proceed')
            db.collection('rooms').doc(roomId)
            .delete()
        }
    }

On deleting] 2

I guess it shows this as it can not find a document to show but how overpass it and change the document when we delete one?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!