website
website copied to clipboard
Create a Generic `useFirebase` and **compose** it in more specific Custom Hooks like`useWhateverData`
https://usehooks.com/useFirestoreQuery/
useCollection is specific, I would rather there is a useFirebase
and is composed in more specific Custom Hooks like useCollection
, useCharacters
, useWhateverFirebaseData
, or whatever. Likely the general Firebase logic was put into useCollection
due to when it was written it being the only Firebase Query
Originally posted by @JacobMGEvans in https://github.com/OpenSourceRaidGuild/website/pull/78#discussion_r571496289
Dropping this here as well
https://github.com/OpenSourceRaidGuild/website/pull/78#discussion_r571499639
https://github.com/AhmedEldessouki/portfolio/blob/main/src/Utils/apis.ts#L112-L123 shall we also make something like this? 🤔