Checks for connections in Roact components that are either not assigned to a variable or passed as arguments.
This indicates a memory leak and can cause unexpected behaviors.
local function MyComponent()
useEffect(function()
a:Connect()
end, {})
endThis lint is active if the file has a variable named Roact or React and that the connection is made within a function.
This checks for connections by identifying the following keywords:
- Connect
- connect
- ConnectParallel
- Once