Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: server side fetch #167

Open
flipnow opened this issue Nov 30, 2022 · 1 comment
Open

fix: server side fetch #167

flipnow opened this issue Nov 30, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@flipnow
Copy link

flipnow commented Nov 30, 2022

🐛 The bug

Fetching data on server side within ionic page component is not possible.

It can be observed in the repro attached that the fetch call happens on the client side only and therefore updating meta tags will have no effect for SEO, social media previews, etc

Server side code executes only in app.vue as far as I can see

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-gjtb8z?file=pages%2Fhead.vue

🌈 Expected behaviour

It's possible to provide code that's executed server side before entering the page.

ℹ️ Additional context

No response

@flipnow flipnow added the bug Something isn't working label Nov 30, 2022
@saviorsoul
Copy link

It might be solved using this approach:
#42 (comment)

@danielroe danielroe removed their assignment Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants