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

properties on device#show page have stale values #19

Open
landlessness opened this issue Oct 23, 2014 · 5 comments
Open

properties on device#show page have stale values #19

landlessness opened this issue Oct 23, 2014 · 5 comments
Labels

Comments

@landlessness
Copy link
Contributor

I have a device property, simCCID, that only gets populated after a device has been running for a while. Even though the property value had changed the browser was not showing the new value. The stale value made me think I had a bug in my code.

screen shot 2014-10-23 at 9 55 29 am

@13protons
Copy link
Contributor

@kevinswiber would this count as an enhancement request for a device's show page to monitor the device api for updated non-stream values?

@kevinswiber
Copy link
Member

The browser won't update on property changes unless they come as a result of a state transition.

@landlessness
Copy link
Contributor Author

so the answer is user error? refresh the browser?

@kevinswiber
Copy link
Member

@landlessness Yes. The alternative is to have the property change as the result of a state transition, but that may or may not make sense depending on your use case.

@landlessness
Copy link
Contributor Author

@kevinswiber ok. that could work for me.

to check my understanding, as long as a function specified in config:

config.map('foo', this.foo)

updates the property this.simCCID:

Fona.prototype.foo = function(data) {this.simCCID = data;}

then that update will be communicated out to the browser and other clients? is that right?

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

No branches or pull requests

3 participants