Kyle Baker
Kyle Baker
@tarikpnr same boat here, using react-native with `testing-library/react-native` and their new `renderHook` doesn't operate the same way as all of the other implementations. I have no issue getting the tests...
Having the same issue. From the crash report: ``` Exception java.lang.IllegalArgumentException: Invalid ClientHandle org.eclipse.paho.android.service.MqttService.getConnection (MqttService.java:588) org.eclipse.paho.android.service.MqttService.isConnected (MqttService.java:413) org.eclipse.paho.android.service.MqttAndroidClient.isConnected (MqttAndroidClient.java:251) com.mrselectronic.cpk.Services.MQTTService$5.run (MQTTService.java:291) ``` Is this a bug with the library itself...
The timer for the tests was changed in 2.5.0: https://github.com/software-mansion/react-native-reanimated/compare/2.4.1...2.6.0#diff-6583c45c1e282c5126f2b737bc6176aeccc5a989c8b1875ac65f0f6fcd9229acR150 + https://github.com/software-mansion/react-native-reanimated/compare/2.4.1...2.6.0#diff-211e5f3c2ab791935d37a15a5c392e46f3958ae46fdc2d642935be9ffbdba1d7R19 Manipulating `global` all over the place is leading to a lot of weirdness. I had to revert the...
Using @CalMlynarczyk's fork for now as well. It fixes this issue very well.
The above example is a bit over simplified for the issue called out in the OP, as well as the issue our team is running into. It seems that generic/dynamic...
Happy to help out and dig more into it 👍 I'm in the process of upgrading react-native for our app, which is why I'm uncovering some of this. I'll let...
A bit more info while I'm still investigating: it definitely appears to be that `renderHook` isn't rerendering the hook when asynchronous tasks happen. How I tested this theory: If you...
The promises are resolving in my use cases, I'm able to set breakpoints and see the code get past the async logic. The tests don't seem to be able to...
Looks like I'm no longer able to reproduce the issue with v11.2.0, thanks for all the collaboration on this! Apologies for my slow responses, I'll try to help out more...
For anyone coming across this issue, here's how I solved it: - Create a `ToastHelper` object to store all shared toast functions - In this helper, create custom hooks so...