Skip to content

useChartPressState state not reset if underlying data changes #561

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

Open
tomh4 opened this issue May 13, 2025 · 0 comments
Open

useChartPressState state not reset if underlying data changes #561

tomh4 opened this issue May 13, 2025 · 0 comments

Comments

@tomh4
Copy link

tomh4 commented May 13, 2025

Describe Your Environment

What version of victory-native-xl are you using? victory-native@41.17.1

What version of React and React Native are you using? 0.79.2

What version of Reanimated and React Native Skia are you using? 3.17.4 & v2.0.0-next.2

Are you using Expo or React Native CLI? Expo

What platform are you on? (e.g., iOS, Android) both

Describe the Problem

Using the state of useChartPressState to visualize a tooltip, changing the underlying data does not reset the state.

Expected behavior: When changing the charting data, the state should be reset

Actual behavior: state keeps the value before changing the dataset

Additional Information

Here is a video:

Bildschirmaufnahme.2025-05-13.um.11.14.46.mov
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