Interface LegacyModelAndNetworkAndRequestStoreSetupOptions<T extends Cache>
interface LegacyModelAndNetworkAndRequestStoreSetupOptions<T extends Cache> extends _LegacyStoreSetupOptions<T> {
legacyRequests: true;
linksMode: false;
modelFragments?: boolean;
schemas?: (
| ResourceSchema
| ObjectSchema)[];
}Defined in: warp-drive-packages/legacy/src/index.ts:133
Setup options for a legacy store configured to use Model along with the legacy adapter/serializer network layer and the deprecated store.findRecord/findAll/query/etc. request methods.
Extends
_LegacyStoreSetupOptions<T>
Type Parameters
T
T extends Cache
Properties
legacyRequests
legacyRequests: true;Defined in: warp-drive-packages/legacy/src/index.ts:149
if true, all legacy request methods and supporting infrastructure will be available on the store.
If legacyRequests is true, linksMode must be false
Default
falselinksMode
linksMode: false;Defined in: warp-drive-packages/legacy/src/index.ts:140
If true, it is presumed that no requests require use of the LegacyNetworkHandler and associated adapters/serializer methods.
Default
falsemodelFragments?
modelFragments?: boolean;Defined in: warp-drive-packages/legacy/src/index.ts:64
Whether to include support for ModelFragments migrations.
Default
falseInherited from
_LegacyStoreSetupOptions.modelFragments
schemas?
schemas?: (
| ResourceSchema
| ObjectSchema)[];Defined in: warp-drive-packages/legacy/src/index.ts:57
The ResourceSchemas or ObjectSchemas of entities migrated to no longer use Model.
CAUTION
Model is still able to be used directly as a source of schema when using useLegacyStore, however, its reliance on EmberObject, classic computeds and resolver behaviors mean that Model will stop working when these things are deprecated in Ember.
Inherited from
_LegacyStoreSetupOptions.schemas