Closed IongIer closed 6 months ago
Trying to get a signal inside a throttle_fn or a throttle_fn_with_arg that is called by a resize observer leads to console warnings about accessing a signal outside of a reactive context.
I set up an example here: Example repo Component that triggers it
Yes that is expected behavior. A throttled function is not a reactive context. Simply call .get_untracked() instead and the warning is gone.
.get_untracked()
Trying to get a signal inside a throttle_fn or a throttle_fn_with_arg that is called by a resize observer leads to console warnings about accessing a signal outside of a reactive context.
I set up an example here: Example repo Component that triggers it