Skip to content

Store @click handlers do not work when function is not invoked in attribute #4380

Discussion options

You must be logged in to vote

When leaving out () the method is run with the current context as the this instead of the object the method is on. This is true for Stores as well as just nested objects.

This is a known and expected behavior. We should probably make it more clear in the documentation that with () and without is NOT universally equal.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackvanderbilt-visma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants