Closed JanStevens closed 1 year ago
Hi,
I noticed that the following code causes issues in places where I already use Array.isArray
Array.isArray
https://github.com/lukemorales/query-key-factory/blob/4d56c4a341196e7d02ed44fbd325493298ad2f70/src/internals/types.ts#L1-L5
Example, when using MUI v5, its typical to pass around the sx prop and spread it (docs: https://mui.com/system/getting-started/the-sx-prop/#passing-the-sx-prop)
sx
Example:
When I comment out the redeclaration of Array.isArray I don't have the above errors anymore.
Thanks for bringing that up @JanStevens, I'll prepare a new release that fixes it
Hi,
I noticed that the following code causes issues in places where I already use
Array.isArray
https://github.com/lukemorales/query-key-factory/blob/4d56c4a341196e7d02ed44fbd325493298ad2f70/src/internals/types.ts#L1-L5
Example, when using MUI v5, its typical to pass around the
sx
prop and spread it (docs: https://mui.com/system/getting-started/the-sx-prop/#passing-the-sx-prop)Example:
When I comment out the redeclaration of
Array.isArray
I don't have the above errors anymore.