-
-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Labels
Description
Hello again :) childParam feature does not work for me. Maybe I'm doing something wrong?
Data:
goals: {
goalId1: {
uid: 'userId'
}
}
users: {
userId: {
displayName: 'John Smith'
}
}Code:
const populates = [
{ child: 'uid', root: 'users', childParam: 'displayName' }
]
@firebaseConnect(() => ([
{ path: 'goals', populates }
]))
@connect(({ firebase }) => ({
allGoals: helpers.populatedDataToJS(firebase, 'goals', populates)
}))Result:
goals: {
goalId1: {
uid: {
displayName: 'John Smith'
}
}
}Expected:
goals: {
goalId1: {
uid: 'John Smith'
}
}