You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to using nivo.rocks for our charts, we get also react-spring as a dependency.
However, we already make use of framer-motion, so it doesn't make sense to keep both packages.
We should try to disable the animations for our charts and wherever needed make use of framer-motion.
Implementation
This issue is complete when...
react-spring is no longer in our bundle
Suggestions
There is no explicit documentation on how or if it is possible to do this. However, you can try using animated=false for the BarChart and Chart components.
Then replace the react-spring usage from ChartCustomXAxisStep, ChartCustomBarLabel and ChartCustomYAxisStep with framer-motion
Specification
Description
Due to using nivo.rocks for our charts, we get also
react-spring
as a dependency.However, we already make use of
framer-motion
, so it doesn't make sense to keep both packages.We should try to disable the animations for our charts and wherever needed make use of
framer-motion
.Implementation
This issue is complete when...
react-spring
is no longer in our bundleSuggestions
animated=false
for theBarChart
andChart
components.react-spring
usage fromChartCustomXAxisStep
,ChartCustomBarLabel
andChartCustomYAxisStep
withframer-motion
vite.config.mts
npx vite-bundle-visualizer
for checking the bundleOf course, these suggestions might not work as expected, so please bring patience ✨
The text was updated successfully, but these errors were encountered: