Render PIE graph component without warnings and error
in an React APP. I'm using a very simple wrapper called
react-frappe-charts and as far researched has no impact
in creating/solving this behavior.
Actual Behavior
React DevTools display an alert with the following TypeError
My guess is that this happens due the reactional nature of the framework that re-renders
a component multiple times and in the first render some REF is not created or being passed.
In my tests the wrapper has no influence or control of this, the addition of two IF assertions in
animation.js can easily solve the problem.
This issue is also discussed here.
I know it is a DEV error only, but make developing with this framework unproductive
I'll be create a PR later on, at the moment I'm using a patch to contour the problem.
Expected Behavior
Render PIE graph component without warnings and error in an React APP. I'm using a very simple wrapper called react-frappe-charts and as far researched has no impact in creating/solving this behavior.
Actual Behavior
React DevTools display an alert with the following TypeError
Steps to Reproduce:
My guess is that this happens due the reactional nature of the framework that re-renders a component multiple times and in the first render some REF is not created or being passed. In my tests the wrapper has no influence or control of this, the addition of two IF assertions in animation.js can easily solve the problem.
This issue is also discussed here. I know it is a DEV error only, but make developing with this framework unproductive I'll be create a PR later on, at the moment I'm using a patch to contour the problem.
Frappé Charts version: 1.5.6 React: 17.0.1 Codepen / Codesandbox: https://codesandbox.io/s/frappe-typeerror-0rs5p?file=/src/App.js