Skip to content

Query does not update properly when refreshed #57

Closed Answered by AQian-Cup
AQian-Cup asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry about that. I realised that the watch attribute would work and the query attribute wouldn't, the difference between them before was whether currentPage had the .value used or not. i thought that getting the value of currentPage directly might cause the function to lose responsive handling of it, so i tried to go with this writeup.

query: {
    current: currentPage,
}

Luckily, it worked.Function automatically unwraps the ref object when it initiates a web request.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johannschopplich
Comment options

Answer selected by AQian-Cup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants