get renderHook's result more than once
问题 I got a test which calls renderHook like this: const { result } = renderHook(() => useMyHook(useDispatch()), wrapper); It's all good and working, and I can get the return value in result.current .. It seems like I can't call another hook with renderHook .. If I do the exact same thing, then it says that result is already defined. If I change the name to something else, like "res", it says that res is undefined, like it's only working for the specific name "result". So how can I call it more