infinite-react icon indicating copy to clipboard operation
infinite-react copied to clipboard

Fix and improve undocumented onDataArrayChange

Open radubrehar opened this issue 2 years ago • 0 comments

onDataArrayChange is not documented yet, but it's in the TS typings.

Before we expose it, we should fix the following issues:

  • onDataArrayChange is called on the first render - see console https://codesandbox.io/s/ondataarraychange-called-first-render-vpg2tx?file=/App.tsx

  • usage with controlled data https://codesandbox.io/s/ondataarraychange-called-first-render-forked-6tsnsc?file=/App.tsx

radubrehar avatar Oct 11 '23 15:10 radubrehar