Would be great to catch these errors faster especially when converting classes to stateless functions