GuillaumeJasmin/react-table-hoc-fixed-columns

Update innerRef type

Closed this issue · 1 comments

Hi @GuillaumeJasmin ,

First of all, thanks for this amazing HOC.

The reason of this issue is that I think you should update the innerRef type to allow pass an object, due to React.createRef() API introduced in React 16.3, which generates an immutable object which we can pass as reference.

If I pass a React.createRef() object, it works without problem but gives a warning due the type:

image

So the update must be change the type in order to supress the warning:

From:

innerRef: PropTypes.func

To:

innerRef: PropTypes.oneOfType([
  PropTypes.func,
  PropTypes.object
]

Thanks!

Hi @ivanbtrujillo
Thanks for your feedback!

It's fixed on v1.0.7 and v2.0.0-beta.6