## Motivation The pattern come from these two issues: https://github.com/Shopify/quilt/pull/1813 https://github.com/facebook/react/pull/18545 **TL;DR** React core team is in discussion on adding warming for this and we can stop the bleeding earlier by adding this as a lint rule. 🚫 fail lint: mutate refs in render method. ✅ pass lint: [mutate ref in a useEffect ](https://github.com/Shopify/quilt/blob/main/packages/react-hooks/src/hooks/previous.ts#L3-L10)