New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin communication back to app is failing on Android #1142
Comments
Hey @salockhart, thanks for the report. The issue is here, you're sending a string as the parameters object in It's just a coincidence that it happens to work in the iOS code path because there's one fewer translation layers. I see that in the API, |
@jknoxville Thanks! That's a great help. I've taken your comments back to the linked issue. |
Summary: Fixes #1142 When using `client.call(methodName, params)`, params has to be an object, not, for example a string. It may work on some client implementations, e.g. iOS, but this is a coincidence and not to be relied on. If this gives you new type errors, the plugin should continue to run in the short term but has no guarantees, please adapt it to conform. You can do this by preserving backwards compatibility by doing a typecheck in your client plugin if necessary. CHANGELOG: Calling `client.call()` or `client.send()` now fails to type-check if params is not an object, to match client implementations. Reviewed By: nikoant Differential Revision: D21450694 fbshipit-source-id: 53db49f874838769e39a94b1c4bd4c0b30ecdbc7
馃悰 Bug Report
I have installed
flipper-plugin-react-query-native-devtools
, which allows me to view thereact-query
query cache at any time. It also allows refetching and removing queries as necessaryHere is an example repo: https://github.com/salockhart/FlipperReactQueryDemo
When running the app on iOS, I can make a request and then use Flipper to refetch or remove the query. When running the app on Android, tapping the buttons in Flipper doesn't do anything. Adding some console logs seems to show that the message is never making it to the app.
To Reproduce
Environment
Flipper Desktop: 0.40.0
Android Emulator: Pixel 3 API 28
iOS Simulator: iOS 11.4.1
react-native-flipper: 0.39.0
react-native" 0.62.2
The text was updated successfully, but these errors were encountered: