$ open source · GPL-3.0 — need a commercial license? imqueue.com →

SyncOptions.treatAsView property

Warning: This API is now obsolete.

Decorate the model instead; passing this is ignored.

Has no effect when passed to a sync call.

Signature:

treatAsView?: boolean;

Remarks

Whether a model is a view is decided by the model, not by the caller: the View and DynamicView decorators set this flag in the model's own options, and that is the only place it is ever read from. It is declared here because a model's options and a sync call's options are the same type, not because passing it does anything.