react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

fix update state warning in onIndexChanged

Open AdrienPringle opened this issue 4 years ago • 2 comments

Is it a bugfix ?

  • Yes
  • If yes, which issue? #1231

Is it a new feature ?

  • No

Describe what you've done:

Fixed the issue where a warning is displayed if the state of the parent component is updated in onIndexChanged with the useState hook.

How to test it ?

Create a swiper with onIndexChanged callback that updates parent state with useState hook.

AdrienPringle avatar Nov 12 '20 21:11 AdrienPringle

Tested! Should be merged

danilocanalle avatar Jun 10 '21 16:06 danilocanalle

We are desperately waiting for this PR to be approved, guys.

lupus-magnus avatar Sep 22 '21 00:09 lupus-magnus