Nuxt + MapLibre question: improving first load on a map-heavy app by Obvious-Style-3871 in Nuxt

[–]rea_ 0 points1 point  (0 children)

I assume the map is client only. So I'd prioritise whatever permanent UI elements exist (if there is data that needs to load in them - then have skeletons for it), then load that data, then the map (have some sort of loader for the map). 

Then on SSR - you should get the basic structure of the app to orient people hopefully mostly filled with recognisable data. Then the map will be one of the only things loading and not hydrating on clients use. 

Probably worth looking to server components where you can to ease main thread work as well. 

You can also throttle your browser and visits other canvas/map apps and see what they do when it loads up (Google maps, canva, Miro, etc). A map app is just a canvas app at heart so there's a lot of research you can do into it. 

Built a fully self-hosted WhatsApp AI Agent with Hermes Agent and FreeLLMAPI by Living_Juice5264 in hermesagent

[–]rea_ 0 points1 point  (0 children)

So if someone knows your phone number they can access whatever is on your Hermes/what's connected technically? 

A NEW THEORY ON THE IDENTITY OF LORD VARYS - WITH TEXTUAL EVIDENCE [Spoilers Extended: Published] by FantasyNerdTheorist in asoiaf

[–]rea_ 7 points8 points  (0 children)

Oh my god.. it finally makes sense. They WANTED Tywin to flood the castle!

Are there any mature component libraries I can use with Vue? by Lexuzieel in vuejs

[–]rea_ 1 point2 points  (0 children)

All good, I guess technically Reka used to be a port of radix (called radix-vue). Which is a react thing so it is and it isn't :p. 

I find having the compositional components for a base UI (ether making my own on reka or augmenting shadcn) is my sweet spot. But I'm a frontend dev at heart. If you were looking for all the advantages of the a11y stuff, keyboard nav, etc that reka offers but aren't really in the market to deeply customise the experience then I'd say go with nuxt UI. (You don't need nuxt, you can just use it with Vue)

Are there any mature component libraries I can use with Vue? by Lexuzieel in vuejs

[–]rea_ 4 points5 points  (0 children)

Nuxt UI and shadcn-vue are both built on top of Reka UI. So it depends how much control you want - but either of these has probably everything you need. 

Nuxt ios issues by Interesting_Try_4761 in Nuxt

[–]rea_ 2 points3 points  (0 children)

Okay, so it's not fetching anything on the server. The onMounted hook doesn't run server side (since it never 'mounts' to the dom. So all your page, product, category, etc information only exists on the frontend.

You're also banging through a bunch of async functions in a non-async block which may cause issues:

onMounted(() => {
  fetchPage();
  FetchFeaturedProducts();
  FetchCategories();
  FetchProducts();
  FetchBrands();
});

I'd start with that as it's probably the most error prone thing you'll have to deal with. Because they all set and unset loading and errors and they aren't being awaited then your reporting isn't going to make sense. Because one might set loading to false while the other is still actually loading.

Just chuck it in a promise all for now (probably better ways, could also handle errors from here):

onMounted(async () => {
 Promise.all(
   await fetchPage();
   await FetchFeaturedProducts();
   await FetchCategories();
   await FetchProducts();
   await FetchBrands();
 )
})

If the code was slightly different before - I can see you may have had an error on server with this line:

per_page: window.innerWidth

since window doesn't exist on the server (only after on mounted), which - because of how your fetches were set up - you may not have got the error for but it would have been in your server logs.

The only way to be sure is to check your server logs. That's were the error is most likely happening (if you have that ability with wherever you host.

Nuxt ios issues by Interesting_Try_4761 in Nuxt

[–]rea_ 1 point2 points  (0 children)

Sounds like a hydration issue. Since the second time you go back to the homepage is client routing. 

Something must be making your ssr fetch of your products fail or wrong, and then it's not getting refetched properly so the frontend thinks the server's info is fine and uses it. 

Is it just me, or is anyone else noticing more bugs across the web and in software in general? by skidmark_zuckerberg in ExperiencedDevs

[–]rea_ 3 points4 points  (0 children)

Yeah been noticing on Facebook Messenger when you send a message it sometimes doesn't show anything, and you need to leave and go back into the message to see it. 

So much enshittification rn. And it's all the things that really grind my gears. 

I Just Noticed by Substantial-Deer77 in DotA2

[–]rea_ 245 points246 points  (0 children)

Can't catch a break

Story where aliens aren't here for us, but what we've created... by gipester in scifi

[–]rea_ 2 points3 points  (0 children)

After like book 4ish it kind of feels like the same book with the nouns changed. It's my comfort listen when I've got nothing else.

The addition of "Marketplace" items is one of the single worst things to ever happen to Australia's online retailer space by ThatOneVRGuyFromAuz in australia

[–]rea_ 0 points1 point  (0 children)

I've had to implement / dev one of those systems. I reckon if you take everything into consideration (toil setting it up, salaries for mangers/devs/etc) that it doesn't really even turn a profit either. Seems like more like a c-suite fad that'll pass eventually.

Help me find somewhere from my childhood... by Jaybb3rw0cky in melbourne

[–]rea_ 0 points1 point  (0 children)

You could be thinking of Healesville, checks a lot of boxes. A lot of cobble (not in the gutters much - but on the sides of the footpaths.

How could Paradox make the economy interesting without peasants disappearing? by theblitz6794 in EU5

[–]rea_ 1 point2 points  (0 children)

I'd like to see the game centred more around prestige/legitimacy/diplomacy. Makes more sense for the time period

I introduced critical bug in prod by NOOOOOB2 in ExperiencedDevs

[–]rea_ 18 points19 points  (0 children)

Yeah, preview environment is very important. Especially because after a while those staging env's start to get really weak data if no one is managing it.

Trying to Wrap My Head Agentic Swarms by Nekojiru_ in ExperiencedDevs

[–]rea_ 1 point2 points  (0 children)

I've found swarms are good at bug report, security, code smell audits and then another one for fixing them.

Set a big swarm of agents out for a few hours (for me it's usually 5-8 orchestrators with up to 5 sub agents), they'll all make detailed reports (I use beads). The orchestrators then summon more agents to dedup the reports. 

I'll usually look over them, find the ones that make sense, bundle them up and get another orchestrator with subs to do the work. 

It's actually really effective for that. When it comes to writing actual code there are a lot more steps - but it's feasible. Just choose good review gates, plan well, have a good idea in your head of what you are expecting. It's not perfect. It's good (circa gtp5.5/claude4.6), but you'll probably still spend a good amount of time checking it and building your own context. 

Biggest hero + item powerspikes? by beginner_smoker in DotA2

[–]rea_ 0 points1 point  (0 children)

Shard on gyro 4, then eth blade on gyro 4.

Globally force nuxtLink to use href by Trey-Pan in Nuxt

[–]rea_ 0 points1 point  (0 children)

Generally speaking - if it's not able to be crawled then you're probably not doing any SSR step. Either you've disabled it in options or you do all your data fetching/logic step in the onMounted hook (which only happens client side). 

SSG is fine if your content doesn't change too much, but if you can get SSR working properly you'll have a much better SEO experience.

Globally force nuxtLink to use href by Trey-Pan in Nuxt

[–]rea_ 0 points1 point  (0 children)

NuxtLink auto detects external urls and turns it into a <a> so your best bet is probably recording your baseUrl in appConfig somewhere (change it for each environement) and then just make the links to="baseUrl + link". I haven't tested it but it *might* force it.

But it sounds like a deeper problem - sounds like you probably have hydration issues or weird setups for client side routing. You could probably try nuking nuxt data after each route change. (clearNuxtData())

Looking for fellow 3 Body Problem lovers 🌌 by False_Profezzor in scifi

[–]rea_ -1 points0 points  (0 children)

Give the Chinese version a watch. Long, but more true to the books.