feat(core): method to expose instance for use in redux-saga and redux-thunk
See original GitHub issueI experience issues when fetching data with the get operator. Works seamlessly when adding data to Firestore though.
Tested on master
and v0.1.0-alpha.2
– using react-redux-firebase
as the base, but since they have made redux-firestore
optional it’s a combination of the two.
Uncaught (in promise) TypeError: Cannot read property 'collection' of undefined
Any idea why?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to load data in React with redux-thunk, redux-saga ...
This article is going to show 4 ways of solving this problem and compare pros and cons of each one. It isn't a...
Read more >React Redux Thunk Crash Course - Middleware & Make ...
Make HTTP requests with Redux Thunk in React. Redux Thunk middleware allows you to write action creators that return a function instead of ......
Read more >Understanding Redux Saga: From action creators to sagas
Learn how to use Redux Saga for both simple and complex approaches to implementing async operations with action creators, thunks, and sagas.
Read more >Redux-Thunk vs. Redux-Saga - Medium
In the context of Redux, Redux-Thunk middleware allows you to write action creators that return a function instead of the typical action object....
Read more >Redux Toolkit Combine Slices - polley-design
In Redux-Toolkit, the createSlice method helps us create a slice of that redux-store, ... To make HTTP API call, we will be using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If anyone came across this, this is working. And you can setup using both
getFirebase
andgetFirestore
by passing in multiple arguments toapplyMiddleware
.and within your thunk:
@prescottprue Yes,
getFirebase().firestore()
works, I’ll use that for now. Thank you!