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

onBrushEnd infinite render loop #1819

Closed
balbany opened this issue Apr 15, 2024 · 1 comment
Closed

onBrushEnd infinite render loop #1819

balbany opened this issue Apr 15, 2024 · 1 comment

Comments

@balbany
Copy link

balbany commented Apr 15, 2024

Looks like @visx/brush has an infinite render loop bug (when used with useWindowMoveEvents).

To reproduce:

  • Using the standard brush example from the docs, repoint the onBrushChange handler to be triggered by onBrushEnd.
  • Now change the brush position more than once in quick succession. You should get the below error:
    image

Sounds similar to #1283 (due to the involvement of useWindowMoveEvents).

Thanks 🙏

@hshoff
Copy link
Member

hshoff commented May 27, 2024

Hi @balbany, this seems fixed now. Can see it working here on my fork of the example here: https://codesandbox.io/p/sandbox/vigilant-edison-p9pzjv?file=%2FExample.tsx%3A215%2C1-216%2C1

@hshoff hshoff closed this as completed May 27, 2024
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

2 participants