MCPcopy
hub / github.com/mobxjs/mobx-state-tree / afterCreate

Function afterCreate

__tests__/core/boxes-store.test.ts:54–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 })
53 .actions(self => {
54 function afterCreate() {
55 unprotect(self)
56 }
57 function addBox(id: string, name: string, x: number, y: number) {
58 const box = Box.create({ name, x, y, id })
59 self.boxes.put(box)

Callers

nothing calls this directly

Calls 1

unprotectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…