Skip to content

:class not evaluating as expected #3386

Answered by ekwoka
jkrk678 asked this question in 5. Bugs
Jan 20, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I can identify some of the issues, but still having some problems, your system is quite different from how I would do it so I'm trying to solve without just rewriting in my style.

For starters, the reason it's not working is that you are referencing the object directly with tableSort.blah in the methods of the object. This won't work since that will be referring to the underlying object, while alpine will be listening for changes that pass through the proxy layer (which will be this in the functions). this is the reason why the functions themselves can get the correct result (they access and pass through the proxy to the object at the bottom) but the reactive listeners aren't triggered wh…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ekwoka
Comment options

@ekwoka
Comment options

@ekwoka
Comment options

Answer selected by jkrk678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants