Skip to content

Commit

Permalink
fix(store): store pointer for model placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed May 6, 2024
1 parent 3d514d4 commit 4d42296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ function setupModel(Model, nested) {
placeholder: (id) => {
const model = Object.create(placeholder);
definitions.set(model, config);
storePointer.set(model, store);

if (enumerable) model.id = id;

Expand Down

0 comments on commit 4d42296

Please sign in to comment.