()
| 107 | |
| 108 | test('createStore with useState outside FC', async () => { |
| 109 | const useCount = () => { |
| 110 | const [count, setCount] = useState(1) |
| 111 | return { count, setCount } |
| 112 | } |
| 113 | const { useStore } = createStore(useCount) |
| 114 | let renderTimes = 0 |
| 115 | const { result } = renderHook(() => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…