We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e9f73 commit 35f2043Copy full SHA for 35f2043
src/runtime/composables/useDrupalCe.ts
@@ -31,7 +31,7 @@ export const useDrupalCe = () => {
31
const nuxtApp = useNuxtApp()
32
33
// Workaround for issue - useState is not available after async call (Nuxt instance unavailable)
34
- const pageState = useState(`page-${path}`, () => {})
+ const pageState = useState('drupal-ce-page-data', () => {})
35
useFetchOptions.key = `page-${path}`
36
useFetchOptions = processFetchOptions(useFetchOptions)
37
@@ -92,7 +92,7 @@ export const useDrupalCe = () => {
92
/**
93
* Use page data
94
*/
95
- const getPage = () => useState(`page-${useRoute().path}`)
+ const getPage = () => useState('drupal-ce-page-data')
96
97
98
* Render elements from page data returned from fetchPage
0 commit comments