src/DragDropMonitor.js
Function subscribeToStateChange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
subscribeToStateChange(listener, options = {}) {
const { handlerIds } = options;
invariant(
typeof listener === 'function',
'listener must be a function.',
Avoid too many return
statements within this function. Open
Open
return index > -1;