brown-ccv / brown-ccv/react-volume-viewer

Fix `useEffect`s in `TransferFunction.jsx`

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.