In remote config, we have set some conditions based on an attribute of the currently logged in user user_attribute. I've sanitised where the user comes from below, but this is how we set it once fetched.
We have a directive which hides and shows a component based on the value that comes back from remote config.
When we first login, remote config does fetch, but it fetches the default values.
If we stay logged in and refresh enough times, the correct value is fetched from remote config, and our element renders, but it takes several refreshes, and without those refreshs, will not render.
Version info
Angular:
^11.2.0
Firebase:
^8.9.1
AngularFire:
^6.1.5
Other (e.g. Ionic/Cordova, Node, browser, operating system):
We have the same problem with
"@angular/common": "11.2.5"
"@angular/fire": "6.1.5"
"firebase": "8.9.1"
@michaeldever are you still having the problem of getting conditional values, or has it been resolved?
Description
user_attribute
. I've sanitised where the user comes from below, but this is how we set it once fetched.Version info
Angular:
^11.2.0
Firebase:
^8.9.1
AngularFire:
^6.1.5
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Node: 17.0.1
How to reproduce these conditions
Steps to set up and reproduce
app.component.ts
element.directive.ts
Sample data and security rules
N/A
Debug output
Errors in the JavaScript console
None.
Output from
firebase.database().enableLogging(true);
N/A.
Screenshots
N/A
Expected behavior
That the remote config is loaded, based on the conditions for the user that I have set using
setUserProperties
Actual behavior
false
).