How to write an effect that depends on a store property?
I would like to scroll to the bottom of the list every time a list changes.
My list is a property of a store. I would like to write something like
but
on
only accepts type Accessor
. Is there another way to do this?7 Replies
on(() => props.list ...
I get a runtime type error when i try that
Could you show the updated code?
hmm that should be fine 🤔
the issue could be somewhere else?
this works for some reason
thank you for you help 🙂
Thanks for catching this. I'll make sure to try test this out and add correct the docs