Vap0r1ze
Vap0r1ze
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Vap0r1ze on 7/5/2024 in #questions
Is there any React frameworks that fit my needs?
I've used NextJS at a few jobs before, and my least favorite thing about it is how impossible component-level data fetching w/ SSR is. I'm not a big fan of server components as a solution to this either, because then you are giving up the ability for the same component to be interactive. I've used Nuxt 3 a bunch and I love how nice SSR feels with it, how I can just useAsyncData (or any wrapper) anywhere and the server will just wait for them all to resolve before sending a serialized page. I also like how much control I get with Nuxt, how it exposes it's app instance with useNuxtApp and I can access it's internals how I want to create my own SSR behaviour. Is there anything like this in React land? I'm asking because I really need to rewrite a project from Vue to React so that a few of my friends can contribute to it, and I don't want to leave behind the DX of Nuxt. Thanks a lot in advance if all of this <3
7 replies
NNuxt
Created by Vap0r1ze on 4/28/2024 in #❓・help
use environment variables in app.config.ts
im using nuxt-icon and it requires me to set my custom api host in app.config.ts, but i cant seem to access environment variables or runtime config there. how do i even go about this
16 replies
NNuxt
Created by Vap0r1ze on 4/24/2024 in #❓・help
dev mode not working in a discord activity
there are no errors in the console so im unsure whats going wrong. on first page load, the first render is successful, it initializes all the components and runs their logic. however the scoped css attributes dont get attached, and when refs are updated they don't cause a rerender. since theres no errors, let me know if anyone has any ideas for where to look to debug this
1 replies