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

Infinite onComputed loop with hide middleware #8

Closed
harshmandan opened this issue Jul 5, 2023 · 2 comments
Closed

Infinite onComputed loop with hide middleware #8

harshmandan opened this issue Jul 5, 2023 · 2 comments

Comments

@harshmandan
Copy link

Hi,

I'm trying to recreate this example in svelte, using onComputed, but whenever the reference element goes out of the view the onComputed loop keeps running.

So my question is if this is normal or expected or if it is a bug?
Also, what is the proper way to use the hide middleware if I'm using it wrong?

Here's the demo REPL: https://svelte.dev/repl/2db64b10d18a4740b81ff707978727bb?version=4.0.4

@fedorovvvv
Copy link
Owner

fedorovvvv commented Jul 5, 2023

Hi!✨
Unfortunately, this is how autoUpdate works in the floating ui
There is nothing we can do about it :(

REPL: https://svelte.dev/repl/e0b47f63f4ce4cc2a44440afce86a206?version=4.0.4

@harshmandan
Copy link
Author

Oh okay, thanks!

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