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?
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