react-adaptive-hooks
react-adaptive-hooks copied to clipboard
some suggestions to unify code
kicking off #37
wondering if we could change the api response to return a supported
property instead of the existing unsupported
property. If we change it to supported
there is no double negatives confusion.
@wingleung cc @addyosmani
Overall the optimization looks good to me. I think we could reduce the number of lines of code.
@wingleung Could you please check my comments?
@anton-karlovskiy since the new commits use the supported
property I've changed the unsupported
properties from the other hooks to supported
since the new commits use the
supported
property I've changed theunsupported
properties from the other hooks tosupported
That sounds good to me. But first let's ask @addyosmani.
@wingleung
There are conflicting files.
@anton-karlovskiy thanks for the heads up, merge conflicts resolved