Skip to content

Conversation

Haviles04
Copy link
Contributor

@Haviles04 Haviles04 commented Aug 4, 2025

refactored layout to use as a plugin

Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
vuetify0 Error Error Sep 11, 2025 8:10pm

# Conflicts:
#	packages/0/src/composables/useLayout/index.ts

let observer: ResizeObserver | null = null

if (IN_BROWSER && getCurrentInstance()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still using IN_BROWSER? this can break Nuxt SSR, we'll need to add some "resolver" for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we just ran this onMounted would we run into weird hydration issues?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can, since we have suspense and the transition api, we need to use the app:suspense:resolve: I use a pinia store + isReady (hydrated here), then on the hook we just update the pinia flag.

At docs app, we can use pinia + onMounted at default layout.

I guess maybe we don't need this hack if we can move the css in js to just css via some cssvar => the problem with the nav drawer (CLS) is about the useBreakpoint => indirect css in js (maybe we can move that code to the theme restoration script)

I'm going to play on my local trying to inline css styles and some vite-ssg build hooks + beasties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants