Skip to content

difficulties with the new Vue pattern #1612

Answered by sagalbot
airtonctj asked this question in Help Wanted
Discussion options

You must be logged in to vote

You'll need to register that ref() within the setup function itself. Right now it's being registered within the callback, which won't be called during setup, so the ref will not be registered.

Try changing let teste = [] to let teste = ref([]), and then in your callback, do teste = Object.keys(resp.data);

Replies: 1 comment 1 reply

Comment options

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

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