react-select-async-paginate icon indicating copy to clipboard operation
react-select-async-paginate copied to clipboard

A problem in useAsyncPaginateBase.js under es folder thorwing an error on console useEffect received a final argument that is not an array (instead, received `boolean`). When specified, the final argument must be an array.

Open numanash opened this issue 2 years ago • 2 comments

I have been using react-select-async-paginate for a very long I found an issue on the console while debugging Please find it in the below image image.

Then I started debugging the application and found that the issue is in useAsyncPaginateBase.js on line 224. Don't know where the arguments are coming from but I fixed the same function by adding another condition Array.isArray(arguments[9]) for deps.

Can you please tell me where the arguments coming from as the deps?: Array is defined for useAsyncPaginate in ts file. Thanks

numanash avatar Mar 23 '22 07:03 numanash

I saw this too, and I am (a) using react components, and (b) it only happened when I passed the cacheUniqs prop

tylerlazenby avatar Apr 07 '22 16:04 tylerlazenby

Is there any new on this?

oosterholt avatar Sep 22 '22 12:09 oosterholt

https://github.com/vtaits/react-select-async-paginate/tree/master/packages/react-select-async-paginate#cacheuniqs

vtaits avatar Dec 06 '22 09:12 vtaits

Make example please if you think something is working wrong

vtaits avatar Dec 06 '22 09:12 vtaits