React-redux-firebase: bug(profileParamsToPopulate): role does not populate - 1.5.0-rc1

Created on 20 Jul 2017  路  5Comments  路  Source: prescottprue/react-redux-firebase

Do you want to request a feature or report a bug?
bug

What is the current behavior?
When using the role recipe with 1.5.0-rc1, the profile does not populate.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
Repeat the steps in the Role recipe outlined here:
http://react-redux-firebase.com/docs/recipes/roles.html

config.js contains:

profileParamsToPopulate: [
      { child: 'role', root: 'roles' }, // populates user's role with matching role object from roles
  ]

component contains:

@connect(
  ({ firebase }) => ({
    auth: pathToJS(firebase, 'auth'),
    account: pathToJS(firebase, 'profile'),
  })
)

inside the component just console.log(account) & you'll see the role is undefined.

What is the expected behavior?
role property is populated

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Works in 1.4.4

bug in-pre-release

Most helpful comment

Confirmed. This is fixed with 1.5.0-rc.2
Object {displayName: "Darren Furr", email: "[email protected]", providerData: Array(1), role: Object}

All 5 comments

@darrenfurr Thanks for making an issue for this. Looking into it some more today.

@darrenfurr I was not able to replicate this in the material example. Going to reach out over Gitter to debug a bit more with you, the post results back here.

v1.5.0-rc.2 was released with a fix for profile populating. The material example now has the profileParamsToPopulate config included.

Confirmed. This is fixed with 1.5.0-rc.2
Object {displayName: "Darren Furr", email: "[email protected]", providerData: Array(1), role: Object}

@darrenfurr Great to know. Its seems that v1.5.0 is stable 馃槃

Was this page helpful?
0 / 5 - 0 ratings