ich versuche zu Immutable.fromJS
ein Feuerbasis Auth user
Objekt .. Dies schlägt fehl und gibt ein Standard-Objekt ..Immutable.fromJS (firebaseAuthUserResult) versagt und ist keine unveränderliche
Ich gehe davon aus es in die Feuerbasis user
gebührt Objekt enthält Funktionen .. oder ähnliches?
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
console.log('received', user);
// following returns an object (the same as the received .. not an immutable!?)
console.log('immutable.fromJS', Immutable.fromJS(user));
// the following fails as it is not an immutable so toJS does not exist!
console.log('immutable.toJS', Immutable.fromJS(user).toJS());
}
});
Irgendwelche Tipps geschätzt!
"dependencies": {
"firebase": "^3.6.7",
"immutable": "^3.8.1",
}
Garn:
resolved "https://registry.yarnpkg.com/firebase/-/firebase-3.6.7.tgz#7708dc6ddaa313415bbc5213116c597b21567ab2"
resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2"
derzeit als pms der Staat ist wie er ist und nicht unveränderlich.