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

Update DependencyForceGraph.jsx #2255

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devhimanshuu
Copy link

@devhimanshuu devhimanshuu commented Apr 15, 2024

Description of the changes

  • make component changes into Functional Components

Checklist

make some changes under React latest version 

Signed-off-by: Himanshu Gupta <114623040+devhimanshuu@users.noreply.github.com>
@devhimanshuu devhimanshuu requested a review from a team as a code owner April 15, 2024 08:06
@devhimanshuu devhimanshuu requested review from jkowall and removed request for a team April 15, 2024 08:06
import { InteractiveForceGraph, ForceGraphNode } from 'react-vis-force';
import { window } from 'global';
import _debounce from 'lodash/debounce';
Copy link
Member

Choose a reason for hiding this comment

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

Is there a difference?

useEffect(() => {
const onResize = () => {
setWidth(window.innerWidth);
setHeight(container.current ? window.innerHeight - container.current.offsetTop : window.innerHeight);
Copy link
Member

Choose a reason for hiding this comment

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

since you never re-assign container.current, will it ever be not null?

@yurishkuro
Copy link
Member

tests are failing with this change

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.

None yet

2 participants