Skip to content

Conversation

danielroe
Copy link
Member

🔗 Linked issue

resolves #25336

📚 Description

This removes window.__NUXT__ after app initialises. The payload can still be accessed with useNuxtApp().payload

👉 Migration

- console.log(window.__NUXT__)
+ console.log(useNuxtApp().payload)

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe merged commit 5f819ab into main Jun 26, 2024
@danielroe danielroe deleted the fix/remove-nuxt branch June 26, 2024 10:32
@github-actions github-actions bot mentioned this pull request Jun 26, 2024
Kamsou pushed a commit to Kamsou/nuxt that referenced this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove window.__NUXT__ once app initialises
4 participants