Page History
...
pushToServer value | description |
---|---|
reject | this is the default, no data synchronisation from client to server for this property |
allow | data changes from client to server are allowed |
shallow | same as allow, but sablo will also add a watch on the model (in the client) and send changes to the clientserver; the watch is based on object reference/primitive value (more performant, but in case of structured/nested objects it will only trigger data synchronisation when the objects are different by reference, even if they are actually 'equal' by content) |
deep | same as allow, but sablo will also add a watch on the model (in the client) and send changes to the clientserver; the watch is based on object equality (compares old and new values of structured/nested objects, less performant because it keeps and compares to copies of structured/nested objects) |
For example:
Code Block | ||||
---|---|---|---|---|
| ||||
"model": { "searchfield" : { "type": "string", "pushToServer": "shallow" } } } |
...
Overview
Content Tools
Activity