victory icon indicating copy to clipboard operation
victory copied to clipboard

VictoryAnimation not updating state.

Open Knguyen21 opened this issue 6 years ago • 1 comments

Bugs and Questions

Checklist

  • [x] This is not a victory-native specific issue. (Issues that only appear in victory-native should be opened here)

  • [x] I have read through the FAQ and Guides before asking a question

  • [x] I am using the latest version of Victory

  • [x] I've searched open issues to make sure I'm not opening a duplicate issue

The Problem

I am using the VictoryAnimation in a component that switches the page display based on the user clicking on the either the graph or table tab button. The VictoryAnimation is used in the graph page and is working when the component initially mounts. However, when I switch to the table page and then back to the graph page, the VictoryAnimation state is not updating when data prop has changed. I don't know why the VictoryAnimation state is not updating. And the animationInfo.progress remains 0. Any advice to fix this issue would be greatly appreciated.

Screen Shot 2020-11-09 at 5 30 40 PM

Knguyen21 avatar Nov 09 '20 22:11 Knguyen21

I thought I had the latest version, but I just updated to 35.3.5 and the issue is fixed.

Knguyen21 avatar Nov 10 '20 17:11 Knguyen21