Replies: 1 comment 2 replies
-
Transferred to the signals repo as it's better situated here than Preact core. Have you by chance skimmed #247? It might offer a solution for you, specifically #247 (comment). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that useComputed automatically tracks the signals accessed during its computation.
So I assume that it is not safe to use useComputed if the computed value depends on some signals as well as some props that the component received because it has no way of tracking the props.
So, is falling back to useMemo the best option for such cases? Or should we consider a hook that auto-tracks accessed signals but also allows some external dependencies similar to useMemo (which need to be explicitly passed).
Beta Was this translation helpful? Give feedback.
All reactions