Closed george-franklin closed 3 years ago
Can you please confirm you are using the latest version? There was a very similar issue one or two versions ago :)
Closing because of inactivity. Please re-open if the issue still persists in the latest version.
Hi, thanks for the great library! I'm having some trouble rendering multiple lines, as long as i have just one line and the data is provided in the chart everything's good. When i try to move the data to the line or add another line with different data and i tap over the chart i get the following error:
ERROR Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. in ForwardRef(Line) (at statChart.tsx:93) in RNSVGGroup (at G.tsx:33) in G (created by Chart) in RNSVGGroup (at G.tsx:33) in G (at Svg.tsx:202) in RNSVGSvgView (at Svg.tsx:197) in Svg (created by Chart) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (created by PanGestureHandler) in PanGestureHandler (created by Chart) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (created by TapGestureHandler) in TapGestureHandler (created by Chart) in RCTView (at View.js:34) in View (created by Chart) in Chart (at statChart.tsx:56) in StatChart (at stats/index.tsx:147) in RCTView (at View.js:34) in View (at stats/index.tsx:126) in Stats (at dashboard/index.tsx:122) in RCTView (at View.js:34) in View (at ScrollView.js:1124) in RCTScrollView (at ScrollView.js:1260) in ScrollView (at ScrollView.js:1286) in ScrollView (at dashboard/index.tsx:73) in Dashboard (at tabs/index.tsx:31) in RCTView (at View.js:34) in View (at tabs/index.tsx:48) in Home (at App.tsx:119) in StaticContainer in StaticContainer (at SceneView.tsx:115) in EnsureSingleNavigator (at SceneView.tsx:114) in SceneView (at useDescriptors.tsx:153) in RCTView (at View.js:34) in View (at CardContainer.tsx:245) in RCTView (at View.js:34) in View (at CardContainer.tsx:244) in RCTView (at View.js:34) in View (at CardSheet.tsx:33) in ForwardRef(CardSheet) (at Card.tsx:573) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:555) in PanGestureHandler (at GestureHandlerNative.tsx:13) in PanGestureHandler (at Card.tsx:549) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:544) in RCTView (at View.js:34) in View (at Card.tsx:538) in Card (at CardContainer.tsx:206) in CardContainer (at CardStack.tsx:619) in RCTView (at View.js:34) in View (at Screens.tsx:84) in MaybeScreen (at CardStack.tsx:612) in RCTView (at View.js:34) in View (at Screens.tsx:54) in MaybeScreenContainer (at CardStack.tsx:494) in CardStack (at StackView.tsx:462) in KeyboardManager (at StackView.tsx:458) in RNCSafeAreaProvider (at SafeAreaContext.tsx:74) in SafeAreaProvider (at SafeAreaProviderCompat.tsx:42) in SafeAreaProviderCompat (at StackView.tsx:455) in GestureHandlerRootView (at GestureHandlerRootView.android.js:31) in GestureHandlerRootView (at StackView.tsx:454) in StackView (at createStackNavigator.tsx:87) in StackNavigator (at App.tsx:107) in EnsureSingleNavigator (at BaseNavigationContainer.tsx:409) in ForwardRef(BaseNavigationContainer) (at NavigationContainer.tsx:91) in ThemeProvider (at NavigationContainer.tsx:90) in ForwardRef(NavigationContainer) (at App.tsx:106) in ThemeProvider (at App.tsx:105) in App (at renderApplication.js:45) in RCTView (at View.js:34) in View (at AppContainer.js:106) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at renderApplication.js:39)
Is it me? Can you kindly point me to a solution? Thank you in advance|