Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwipeableViews rerender too much #666

Open
1 task done
jdk-creator opened this issue May 25, 2022 · 0 comments
Open
1 task done

SwipeableViews rerender too much #666

jdk-creator opened this issue May 25, 2022 · 0 comments

Comments

@jdk-creator
Copy link

jdk-creator commented May 25, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I have an input and a swipeableview and I expect if the value input is modified then only the input is re-rendered.

Current Behavior

Now each time I change the value of the input the swipeableview re-render too

Steps to Reproduce (for bugs)

https://codesandbox.io/s/crazy-lake-0ql8rs?file=/demo.js:624-638

  1. enter a value in the put
  2. You should see in the console that the function callMe is called each time you change the input value

Context

in my real code I do have a heavy component under the swipeableview that cannot just re-render each time I change the input

Your Environment

Tech Version
react-swipeable-views 0.14.0
React 18
platform Windows Browser
etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant