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

Function instantiateRecord() ​

ts
function instantiateRecord(
   this, 
   identifier, 
   createRecordArgs?
): Model;

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

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.