Skip to content

Error: useFirestoreDataSource Firestore not initialised in useDataSource #173

Answered by fgatti675
C-Coretex asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @C-Coretex
The approach you are following is meant to build your custom data source, so not using Firestore. You don't need to do that unless you want to persist or fetch data from a different source than Firestore.
If your admins collection is in Firestore, you can use the Datasource that is provided by FireCMS.
In order to do that, just use the hook useDataSource (provided by the library, no need to create your own!)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@C-Coretex
Comment options

@fgatti675
Comment options

@C-Coretex
Comment options

@C-Coretex
Comment options

Answer selected by C-Coretex
Comment options

You must be logged in to vote
2 replies
@C-Coretex
Comment options

@fgatti675
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants