New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signal Equality Functions #562
Comments
What's the use case? |
Such scenarios are quite common. For example:
|
I don't think they're that common, given the is the first request for it on this repo ;) Personally, I'd say you're better off with a different data structure that wraps the values you want in That said, adding a comparator method to the signal prototype should probably be workable. |
It's possible to implement signal with comparsion in user land. Maybe I will make an implementation |
Can we add some parameters to the signal for comparing signal values? Currently, the default comparison is simply ‘===’. Perhaps we can refer to Angular signals and allow users to define their own equality functions?
The text was updated successfully, but these errors were encountered: