FirebaseExtended / reactfire

Hooks, Context Providers, and Components that make it easy to interact with Firebase.
https://firebaseopensource.com/projects/firebaseextended/reactfire/
MIT License
3.52k stars 401 forks source link

usesFirestoreDocData stuck in `status: "loading"` if data does not exist #440

Closed jhuleatt closed 3 years ago

jhuleatt commented 3 years ago

Originally posted by @namiwang in https://github.com/FirebaseExtended/reactfire/discussions/438#discussioncomment-1251839

Expected behavior

{
  // ...
  status: "success",
  data: undefined,
  // ...
}

Actual behavior

{
  // ...
  status: "loading",
  data: undefined,
  // ...
}