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 useEffects in TransferFunction.jsx #87

Open
RobertGemmaJr opened this issue Apr 18, 2022 · 0 comments
Open

Fix useEffects in TransferFunction.jsx #87

RobertGemmaJr opened this issue Apr 18, 2022 · 0 comments

Comments

@RobertGemmaJr
Copy link
Member

Right now the first useEffect runs when initTransferFunction runs and the other runs when canvasPoints, pointHovering, pointDragging, etc change.

When initTransferFunction changes (the model.transferFunction prop changes) it causes both useEffects to run at the same time which is causing errors

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

No branches or pull requests

1 participant