Skip to content
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

App Crashes when color theme is changed #156

Open
julian-dotcom opened this issue Aug 17, 2023 · 1 comment
Open

App Crashes when color theme is changed #156

julian-dotcom opened this issue Aug 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@julian-dotcom
Copy link

Given the following component, my application crashes, when the color theme is changed (e.g. dark mode => light mode)

I can solve the bug by removing <LineChart.Path color={theme['color-primary-500']} />. Notice that removing the color={theme[color-primary-500]} doesn't fix the error.

Any suggestions would be greatly appreciated.

export const WagmiChart = () => {
  const theme = useTheme();
  const { onActivated, onEnded, isHoveringActive } = useBitcoinChartContext();

  return (
    <LineChart
      height={height > minHeight ? height : minHeight}
      shape={!isHoveringActive ? d3Shape.curveBasis : d3Shape.curveBumpX}>
      <LineChart.Path color={theme['color-primary-500']} />
      <LineChart.CursorCrosshair color={theme['color-primary-500']} />
      <LineChart.CursorLine minDurationMs={150} onActivated={onActivated} onEnded={onEnded} />
    </LineChart>
  );
};
@honeybadger26
Copy link
Collaborator

Hi @julian-dotcom. Would you be able to provide a stack trace or even a reproduction repo for this error?

@honeybadger26 honeybadger26 added the bug Something isn't working label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants