nise icon indicating copy to clipboard operation
nise copied to clipboard

Improve error message for `setState` exception

Open HarelM opened this issue 2 years ago • 0 comments

I've been reverse engineering this library in order to understand why I get this specific error message in my tests. Turned out that this was a race condition of aborted requests that the test code was trying to respond but the calling code already aborted this request. After digging into this code and understanding that this was the problem, I decided to open this PR so that future developer might avoid the problem I faced. I also didn't find a lot of information in stack overflow and so I think this is the easiest solution to this problem. Let me know if there's anything else I need to follow in order to get this merged.

HarelM avatar Oct 11 '22 05:10 HarelM