website-v2 icon indicating copy to clipboard operation
website-v2 copied to clipboard

feat: add component watchParam

Open Kolobok12309 opened this issue 4 years ago • 3 comments

fix #1977 image image

Kolobok12309 avatar Jan 09 '22 15:01 Kolobok12309

✔️ Deploy Preview for nuxt ready!

🔨 Explore the source changes: 675e5ac75fa79354cdf35478edf9055b7e7b2882

🔍 Inspect the deploy log: https://app.netlify.com/sites/nuxt/deploys/61dafbba0bcdce0007fb7179

😎 Browse the preview: https://deploy-preview-1978--nuxt.netlify.app

netlify[bot] avatar Jan 09 '22 15:01 netlify[bot]

As I spent a lot of time figuring out what happens in nuxt/nuxt.js#10139, I would like to see watchParam menitioned on https://nuxtjs.org/docs/components-glossary/key#the-key-property because that is how one can get watchParam effect. Also I think it would be good idea to explicitly menition when data() is called in https://nuxtjs.org/docs/concepts/nuxt-lifecycle#nuxt-lifecycle

Uzere avatar Jan 11 '22 00:01 Uzere

@Uzere, Actually agree with you, unfortunately, I have no experience in graphic design and will not be able to update hooks. Also i test behaviour when set watchParam: false and changed param and query, by source code i think this have bug and if true, this needs to be added to the documentation UPD: If i set watchParam: false, watchQuery: true and change param AND query of route, nothing happens. Tests for it

Kolobok12309 avatar Jan 11 '22 07:01 Kolobok12309