Comments (5)
I can make +client.js
to be the first lines of JavaScript that are injected, which would solve the issue right?
from vike-vue.
I'm not sure. Imo the documentation on that is lacking - in what context is the script executed, e.g. do I have access to pageContext already? Just from looking at it, it looks like it is plain JS that gets injected, probably before the Vue app is initialized, which would mean I can't register sentry either (since it needs the Vue app). So Sentry really should be initialized after creating app
but before rendering it - both of which happen in onClientRender.ts
right now. I'm sure there's a way to do it if I really wanted to by queueing any errors and waiting for Sentry to be initialized, but I'd rather not add complexity around that.
from vike-vue.
I see. How about a custom hook onCreateApp()
provided by vike-vue
? (And, yes, better documentation is very much on the radar.)
from vike-vue.
Yup, sounds like the best approach here.
from vike-vue.
PR welcome if you want :) (but let us know if you're busy, I can implement it).
from vike-vue.
Related Issues (20)
- Wrong data in `useData` after client side navigation HOT 15
- Possible leftover properties in `pageContextReactive` after `pageChange` HOT 11
- Write docs for `vike-vue-pinia` and `vike-vue-query` HOT 1
- Sell vike-vue + JSX? HOT 1
- vikeVuePinia causes error HOT 4
- using pinia-plugin-persistedstate with js cookie HOT 2
- CSS-in-JS with SSR HOT 33
- How to add some className to body? HOT 9
- How to deploy to IIS server? HOT 1
- Setting the bodyHtmlBegin property breaks the page functionality HOT 16
- Vue Devtools-Next errors when trying to evaluate pageContext HOT 12
- Bug: pageContext.queryClient isn't defined on the client-side HOT 7
- Client side routing with catch all page throwing error HOT 4
- `clientOnly()` function instead of `<ClientOnly>` wrapper component HOT 29
- Progressive Rendering HOT 11
- Nuxt Comparison HOT 4
- Support for `teleports` with Vue SSR HOT 29
- Improve hooks? HOT 20
- Export Vike configuration at `/config`
- Release `vike-vue-{pinia,query}@0.1.0`? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vike-vue.