Skip to content
module@warp-drive/legacy/model @legacy

Function instantiateRecord() ​

ts
function instantiateRecord(
   this: Store$1, 
   identifier: ResourceKey, 
   createRecordArgs?: {
     [key: string]: unknown;
}
): Model;

Defined in: warp-drive-packages/legacy/src/model/-private/hooks.ts:23

The instantiateRecord hook implementation for use with Model. Pass this to your store's instantiateRecord method when configuring the store to use Model for schema/record instantiation.

Parameters ​

this ​

Store$1

identifier ​

ResourceKey

createRecordArgs? ​

Returns ​

Model

Released under the MIT License.