dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

submitDelta() does not update clients state correctly #739

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey folks,

I am using the submitDelta() function in one of my gadgets and try to push 
three values to the wave state like this:

wave.getState().submitDelta({
   "a": 1,
   "b": 2,
   "c": 3
});

The other gadget clients receive the stateUpdated-callback but have only 
access to wave.getState().get("a"). Both other values are not present in 
the first stateUpdatedCallback. However, if I push those three values 
seperately (submitValue) everything works fine. Additionally this only 
seems to happen if the users are online in the wave at the same time.

You can test this behaviour with the attached xml-file

Markus

Original issue reported on code.google.com by murx...@googlemail.com on 21 Apr 2010 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by pamela.fox on 22 Apr 2010 at 7:51

GoogleCodeExporter commented 9 years ago
That XML is not valid in multiple ways - doesn't contain CDATA markers, XML 
declaration, etc. Please attach a valid XML file or link to a public sample 
wave for 
further debugging.

Note that the values in a delta are meant to be strings, so you should surround 
1, 2, 
and 3 with quotes.

Original comment by pamela.fox on 7 May 2010 at 12:59