The pitfalls of async operations via React Context APIReact provides a nice API to share state globally and across components but while working at scale in Jira discovered how it can become…Jul 11, 2019A response icon6Jul 11, 2019A response icon6
Rethinking React dependency injectionDependency/component injection for testing purposes is not a new topic, but using props to solve is not the right approach…Jun 24, 2019A response icon1Jun 24, 2019A response icon1
React-sweet-state: Redux and Context, the yummy partsFor the past months I’ve been part of the team responsible to transform Atlassian’s Jira into a modern SPA. We took this opportunity to…Jun 18, 2019A response icon4Jun 18, 2019A response icon4
Unstated and render props pitfalls for data fetchingOne of the new patterns getting popular across the React community is the render props pattern and Unstated is an experiment of using that…Aug 14, 2018Aug 14, 2018
Fixing coin mining scripts abuse on the WebRecently, while surfing on my laptop, I noticed the fan suddenly starting making a lot of noise and, to my surprise, I saw in “Activity…Feb 6, 2018Feb 6, 2018
Testing frontend integration with 3rd party servicesHow to run integration tests of frontend code when you have no control over the API service (and the service has no test environment)?Dec 15, 2017A response icon1Dec 15, 2017A response icon1
Forcing state reset on a React component by using the key propDid you know that you can use the key prop to force reset a component state? Most of the times you want to prevent that, but sometimes it…Dec 5, 2017A response icon1Dec 5, 2017A response icon1
Manipulating cross origin images with HTML canvasHTML canvas interface implements a series of security related features that prevent cross domain manipulation unless explicitly allowed by…Oct 16, 2017A response icon2Oct 16, 2017A response icon2
Getting plain text from user input on a contenteditable elementIt is no news that HTML contenteditable is a mess, however it is challenging even getting a plain text value of the user input.Aug 25, 2017Aug 25, 2017
Fixing export default on Webpack when bundling a libraryRequired workaround to properly distribute a library built with Typescript, Babel and Webpack.Aug 18, 2017A response icon2Aug 18, 2017A response icon2