We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uncaught TypeError: sub is not a function at jstates.js:34 at Array.map () at Object.setState (jstates.js:33) at onPageLoad (index.js:9) at index.js:3
my code looks like this :
if (readFromLocal("defaultConfig") === null) { console.log("Setting runningConfig to globalDefaultConfig"); runningConfig.setState(globalDefaultConfig); }
As far as I can tell the state is set successfully as I am able to then access the state using the getState method.
The text was updated successfully, but these errors were encountered:
Whoops! my fault!
when subscribing I had included the brackets like so : runningConfig.subscribe(runningConfigOnUpdate());
the proper form should have been
runningConfig.subscribe(runningConfigOnUpdate);
Sorry, something went wrong.
No branches or pull requests
Uncaught TypeError: sub is not a function
at jstates.js:34
at Array.map ()
at Object.setState (jstates.js:33)
at onPageLoad (index.js:9)
at index.js:3
my code looks like this :
if (readFromLocal("defaultConfig") === null) {
console.log("Setting runningConfig to globalDefaultConfig");
runningConfig.setState(globalDefaultConfig);
}
As far as I can tell the state is set successfully as I am able to then access the state using the getState method.
The text was updated successfully, but these errors were encountered: