-
-
Save uno-de-piera/88fe491821d273593e9fbf1356686585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//populamos los registros con el usuario que ha creado el registro | |
const populates = [ | |
{child: 'createdBy', root: 'users'} | |
]; | |
@firebaseConnect(() => ([ | |
{ | |
path: 'projects', //path de firebase | |
populates //info a rellenar | |
} | |
])) | |
@connect(({ firebase}) => ({ | |
projects: populatedDataToJS(firebase, 'projects', populates), //mapStateToProps | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment