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

Fix Callgraph crash #3267

Merged
merged 5 commits into from
Jun 12, 2023
Merged

Fix Callgraph crash #3267

merged 5 commits into from
Jun 12, 2023

Conversation

monicawoj
Copy link
Contributor

@monicawoj monicawoj commented Jun 12, 2023

Resolves #2505

Lazy loading of the Callgraph component in the @parca/profile package appears to be making the app crash as soon as the user selects the 'Callgraph' view.

The bug only appears after building the code, which indicates that it is likely a problem with NextJS's behavior of React.Lazy loaded components. Lazy loading of this component has thus been removed.

If we decide that the Callgraph component does in fact require lazy loading, we can explore optimization using next/dynamic (https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading).

@monicawoj monicawoj requested a review from a team as a code owner June 12, 2023 10:53
Copy link
Contributor

@yomete yomete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@monicawoj monicawoj enabled auto-merge (squash) June 12, 2023 14:47
@monicawoj monicawoj merged commit 2128d19 into main Jun 12, 2023
@monicawoj monicawoj deleted the callgraph-fix branch June 13, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Callgraph panics and Parca goes blank
2 participants