typicode/react-lodash

Options aren't correctly generated

typicode opened this issue · 1 comments

See https://unpkg.com/react-lodash@0.1.1/src/Debounce

export default function Debounce(props) {
  return props.children(debounce(props.func, props.wait, props.options, props.options.leading, props.options.maxWait, props.options.trailing))
}

It actually should be:

export default function Debounce(props) {
  return props.children(debounce(props.func, props.wait, props.options))
}

renderComponent should be modified

Fixed in v0.1.2