Closed feugy closed 10 months ago
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
speed-insights-nextjs | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 8, 2023 2:09pm |
speed-insights-nuxt | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 8, 2023 2:09pm |
speed-insights-remix | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 8, 2023 2:09pm |
speed-insights-sveltekit | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 8, 2023 2:09pm |
speed-insights-vue | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 8, 2023 2:09pm |
๐ What's in there?
In a Sveltekit application, when importing
injectSpeedInsight()
into a+layout.js/ts
file, the route could be undefined.๐งช How to test?
On the preview deployment, we can navigate between the 2 pages and see the metrics being collecting, and assigned to the correct route.
โ Notes to reviewers
Please focus on
+layout.js
file. I brought a simpler skeleton app instead of the full demo app which is irrelevant for us.This must be an edge case, because this
injectSpeedInsight()
contains conditionals to only run on the client side, where theroute
should always be available. We can see the metrics correctly applied to the current route.