Vue3: How to watch/compute/use $page.props with composition api #856
Answered
by
WOSHIZHAZHA120
colq2
asked this question in
Help (Vue)
-
I am trying to figure out how to watch or compute properties of With the options api it was easy:
With the options api it looks like this:
This work when I am using the form helper and posting something and then return to another page. With "it doesn't work" I mean, that in the page the props are updated fine. But in a component (an alert component) the computed properties a still null. Does anyone know what I am missing? |
Beta Was this translation helpful? Give feedback.
Answered by
WOSHIZHAZHA120
Aug 11, 2021
Replies: 1 comment 1 reply
Answer selected by
colq2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try watchEffect, Like this.