Kal
Kal
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
Ohhh good one lol, yes
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
Or perhaps make a computed that outputs false by default, but if client is true, then it's the full logic (state of loading or disabled prop)
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
I would probably look for something about excluding elements from Firefox's form caching
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
You should focus on that thread or any other discussion online; for sure there has to be a workaround after so many years.
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
Or maybe a workaround involving a computed and a lifecycle (e.g. beforeOnMount/onMounted) such that FF's cached state is circumvented
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
If this is the case, you probably want to look at somehow excluding the actual <button> from being cached; maybe there's an attribute to tell Firefox "hey, this isn't part of a form, so don't cache it's state".
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
This looks like a 10 year old unsolved issue in Firefox
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
The FF hydration errors go away when simply removing the disabled attribute on the <button>. I wonder if it's related to this: Firefox behaves different than all browsers when it comes to caching of form element states (e.g. button disabled state). https://bugzilla.mozilla.org/show_bug.cgi?id=654072
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
Good test; I see same results still
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
@ObSeSSeN What is your original environment? Local machine?
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
A next step: Just for fun, as a test, make your own button component that has zero dependencies.
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
I'm able to replicate in Stackblitz FF; the page seemingly works fine however I do see a hydration warning in the console. In Chrome I see no hydration warning in the console.
79 replies
NNuxt
Created by Omnislash on 2/24/2025 in #❓・help
layout slot issue
I didn't scrub through all of AI's hogwash regurgitation... In any case, on a quick glance, this to me looks like multiple child elements: This is multiple root elements, and seems strange to do: <template> <NuxtLayout> <NuxtPage /> </NuxtLayout> <UModals /> <UNotifications /> </template> Instead, I would expect (a single root element): <template> <NuxtLayout> <NuxtPage /> </NuxtLayout> </template> and in your Layout (wherever/whatever it is) you'd keep <UModals /> and <UNotifications />. Relevant doc: https://nuxt.com/docs/guide/directory-structure/layouts#enable-layouts
Unlike other components, your layouts must have a single root element to allow Nuxt to apply transitions between layout changes - and this root element cannot be a <slot />.
22 replies
NNuxt
Created by theplay3r on 2/22/2025 in #❓・help
Nuxt UI v3 Calendar Heading
Ohhh, you want to get range data which will dictate the header, got it
8 replies
NNuxt
Created by theplay3r on 2/22/2025 in #❓・help
Nuxt UI v3 Calendar Heading
I haven't done i18n myself yet but I would think this is the case?
8 replies
NNuxt
Created by theplay3r on 2/22/2025 in #❓・help
Nuxt UI v3 Calendar Heading
Would you not pass a final translated string into the heading slot of the calendar? Wouldn't translations be handled outside of the calendar instance?
8 replies
NNuxt
Created by Kal on 2/22/2025 in #❓・help
In nuxt, where to specify compile-time flags?
Thanks AI... actually was impressed
5 replies
NNuxt
Created by marc on 2/21/2025 in #❓・help
my project's GUI suddenly ran out of color (nuxtui3/tailwind4)
A vaguely recall seeing this in the past but I have no recollection of details; I remember being really confused
17 replies
NNuxt
Created by marc on 2/21/2025 in #❓・help
my project's GUI suddenly ran out of color (nuxtui3/tailwind4)
🤣
17 replies
NNuxt
Created by marc on 2/21/2025 in #❓・help
my project's GUI suddenly ran out of color (nuxtui3/tailwind4)
I guess, if you've run out of exploration, then reboot the machine?
17 replies