Child pages
  • Specification (.spec file)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

pushToServer valuedescription
rejectthis is the default, no data synchronisation from client to server for this property
allowdata changes from client to server are allowed
shallowsame 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
languagejs
titlepushToServer example
"model": {
   "searchfield" : { "type": "string", "pushToServer": "shallow" }
   }
} 

...