Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to us Remote Config gives a stack overflow error. #317

Open
ryanwalker opened this issue Mar 22, 2017 · 0 comments
Open

Trying to us Remote Config gives a stack overflow error. #317

ryanwalker opened this issue Mar 22, 2017 · 0 comments

Comments

@ryanwalker
Copy link

I cannot find any examples of how to use remote config. I looked at the code and attempted the following:

import Firestack from 'react-native-firestack'
this.firestack = new Firestack();
console.log(firestack.remoteConfig.setDev());

I get an infinite loop that blows the stack. Looking in the code I see why. In firestack.js

  get remoteConfig() {
    if (!this.remoteConfig) {
      this.remoteConfig = new RemoteConfig(this._remoteConfig);
    }
    return this.remoteConfig;
  }

This will continue calling itself over and over again. Does remote config even work? What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant