web-developmentReact Native imports: The rule of 5.I'm going to talk about a metric that I've created that serves me as a warning signal to detect if a react component is doing too much stuff.
web-developmentHigher Order Components - HOC - in React NativeHigher Order Components is a useful pattern that has a lot of uses to make your React code easy to read and maintain. In this post I'm going to explain how to use Higher Order Components, HOC from now on, to keep your code DRY.
web-developmentApollo Graphql PromiseRejectionHandledWarning: Promise rejection was handled asynchronouslyThis weird error that took me a while to debug and in the end it had a very simple solution.TL;DRError message: PromiseRejectionHandledWarning: Promise rejection was handled asynchronouslySolution: I was sending an integer when a param of type string was expected.
web-developmentReact native with Apollo Graphql works on iOS but not on AndroidMy React Native app was working without problems on iOS but when I started expo to run the app on my android phone I had this weird graphql error: Unhandled (in react-apollo:Apollo )