v0.16.163 - 32.5 / 22.9

useSelector

Selector is a helper to create a conditional read-only signal. A signal generator. It returns a function that evaluates to true when the argument matches the original signal. The thing to remember, is that creates 1 effect instead of N effects for N values.

# Using selector

Automatically create signals for the values and returns true when a value matches

# Using selector with multiple values

Using it with multiple values