MCPcopy Index your code
hub / github.com/effector/effector / createCustomEntity

Function createCustomEntity

src/solid/__tests__/shapeProtocol.test.tsx:75–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73})
74
75function createCustomEntity() {
76 const $someStore = createStore('initial value')
77 const someEvent = createEvent<string>()
78
79 sample({clock: someEvent, fn: value => value, target: $someStore})
80
81 return {
82 entity: {
83 '@@unitShape': () => {
84 return {someStore: $someStore, someEvent}
85 },
86 },
87 internals: {
88 $someStore,
89 someEvent,
90 },
91 }
92}

Callers 1

Calls 3

createStoreFunction · 0.90
createEventFunction · 0.90
sampleFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…