MCPcopy Create free account
hub / github.com/effector/effector / ErrorDisplay

Function ErrorDisplay

src/react/__tests__/base/useStore.test.tsx:50–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 it('should throw', async () => {
49 const fn = jest.fn()
50 const ErrorDisplay = () => {
51 try {
52 //@ts-expect-error
53 useStore(undefined)
54 } catch (error) {
55 fn((error as any).message)
56 }
57 return <span>Store text</span>
58 }
59
60 await render(<ErrorDisplay />)
61 expect(argumentHistory(fn)).toMatchInlineSnapshot(`

Callers

nothing calls this directly

Calls 2

fnFunction · 0.70
useStoreFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…