Replies: 1 comment 4 replies
-
(I wonder how |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(I wonder how |
Beta Was this translation helpful? Give feedback.
-
I have the following State selector:
The FieldAccessor function provides a method to access state through the returned
get
lambda. This code works the way I expect and updates the component whenever the evaluated code changes result.However, this throws a Typescript warning because
state
is never used, as a result of my decision to use a function as the selector.Is there a way to get around this without manually ignoring the type error on the line?
Beta Was this translation helpful? Give feedback.
All reactions