drunomics / nuxtjs-drupal-ce

A Nuxt module to easily connect Drupal via custom elements.
https://lupus-decoupled.org/
MIT License
22 stars 4 forks source link

Page data is not updated outside of NuxtPage on client side navigation #134

Closed TurtlBbx closed 1 year ago

TurtlBbx commented 1 year ago

Page data is not updated on client side navigation in a layout or in app.vue, it stays the same as on initial load.

This issue is related to: https://github.com/nuxt/nuxt/issues/14595, because we are using useState(page-${useRoute().path}) to store page data returned from Drupal backend.

I've found a solution that works, we don't need to have unique key for useState, I'll create a PR soon.

fago commented 1 year ago

merged!