Skip to content

Instantly share code, notes, and snippets.

View juanbiltes's full-sized avatar
🦖

Juan Biltes juanbiltes

🦖
View GitHub Profile
@markopavlovic
markopavlovic / (1) firebaseMiddleware.js
Last active March 1, 2018 09:23
Firebase Middleware on Redux - Follow up on "react-redux-universal-hot-example" (Firebase login example)
/**
* @path src/redux/middleware
*
* Extract from clientMiddleware example in order to showcase
* the difference and help in understanding the same.
*
* @diff - Differences with "react-redux-universal-hot-example"
*/
export default function firebaseMiddleware(fireRef) {
return ({dispatch, getState}) => {