techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.3K
active users

#ssr

2 posts2 participants0 posts today

🌘 透過建立 SSR React 專案來理解水合錯誤
➤ 瞭解伺服器端渲染與客戶端水合的關鍵概念
propelauth.com/post/understand
本文探討了 React 應用程式中常見的水合錯誤(Hydration Error)及其原因。透過建立一個簡單的 React / Express 應用程式,文章逐步說明瞭伺服器端渲染(SSR)的原理,以及當伺服器渲染的 HTML 與客戶端渲染的 UI 不一致時,會發生的問題。文章詳細解釋了 `hydrateRoot` 函數的作用,以及如何避免因伺服器與客戶端數據不匹配而導致的錯誤,並強調了及時處理這些錯誤的重要性,以避免潛在的安全和效能問題。
+ 這篇文章清楚地解釋了水合錯誤,對初學者來說很有幫助,讓我更瞭解 React SSR 的運作方式。
+ 文章實例講解非常棒,能實際操作,更深入地理解水合錯誤的原理和解決方案。
#React #SSR #前端開發 #水合錯誤

www.propelauth.com · Understanding Hydration Errors by building a SSR React ProjectIf you’ve written React code in any server-rendered framework, you’ve almost certainly gotten a hydration error. These look like: Text content does not match server-rendered HTML or Error: Hydration failed because the initial UI does not match what was rendered on the server And after the first time you see this, you quickly realize you can just dismiss it and move on... kind of odd for an error message that’s so in-your-face (later on, we’ll see that you might not want to dismiss them entir

(Finally) getting a better understanding of useFetch(), useLazyFetch() (or useAsyncData()) in #nuxt #nuxtjs #SSR.

First Page Load vs. <Nuxt> client side navigation with injected and (automatic) window.__NUXT__ payload cache for fetch data confused me a little bit at first. 🤓 Plus: Lot's of composables to choose from 😁🤯

Now wondering how performance optimization works.

Continued thread

A #platform, is a platform, is a platform. The user don't care.

What is that, a #CSR on #serverless, an #SSR hooked up to a #VPS - or maybe you even manage your own #kubernetes. Daring, aren't we?

For some people, this is all static. But, they know what the #web is. They know that it's where the crawlers live.

When I look at this chart, I think #WebSocial has a ring to it that might project "Other" into the top 5 - maybe even top 3.

Why?

Just created a simple #FastAPI project to showcase how #Python server-side rendered apps with an #htmx frontend could look like, using a React-like, async, type-checked rendering engine.

The app *does not* use Jinja/Chameleon, or any similar templating engine, ugly custom syntax in #HTML -like files, etc.

Interestingly, even #ai coding assistants can pick up the patterns and offer decent completions.

You can check out the project here: github.com/volfpeter/lipsum-ch

Boost appreciated #webdev #ssr

Technology demonstration for server-side rendering with Python, FastAPI, and htmx - volfpeter/lipsum-chat
GitHubGitHub - volfpeter/lipsum-chat: Technology demonstration for server-side rendering with Python, FastAPI, and htmxTechnology demonstration for server-side rendering with Python, FastAPI, and htmx - volfpeter/lipsum-chat

Whether you're using client-side rendering (CSR) or server-side rendering (SSR), we've got you covered!

In this step-by-step guide, you'll learn how to:
✅ Deploy Angular on cPanel with CSR & SSR
✅ Configure .htaccess for smooth routing
✅ Optimize performance for SEO & speed

No more deployment headaches—launch your Angular app effortlessly! 🔥

📖 Read now: aveshost.com/blog/how-to-deplo

to get sovereignty back for #european tech i would promote that we should get back to known tech #nocloud #lessDynamicWeb #simpleweb #ssr #lessJS

Why cause with simple tech we can build fast and use stuff thats available. For dynamic web e.g you need a modern browser engine that is hard to reimplement in the open and gecko and chromium aren't that great due to the fact that its big corporations behind it.

Furthermore simple tech makes you able to stay out of the cloud and enables you to host in on your systems. And several other benefits

Continued thread

SSR Streaming:

Existe la expectativa de la introducción de Streaming en Server-Side Rendering en la versión 20. 🚀 Un avance significativo en la percepción de carga y performance. #SSR #Streaming

Esto seria muy interesante 👀

Continued thread

- Estabilización de Event Replay en SSR:

Se robustece el mecanismo de replay de eventos en Server-Side Rendering, buscando un comportamiento más predecible y consistente. 🔄 #SSR

- Nuevas APIs: `resource` y `rxResource`:

Se incorporan nuevas APIs para la gestión de recursos y operaciones HTTP reactivas, integrándose con el modelo de Signals. 🧰 #Signals #APIs

Adios Rxjs??

Your Angular app is dynamic, fast, and interactive — but what if search engines can’t see it?

Dynamic content can confuse crawlers, leading to poor SEO, lost traffic, and missed opportunities.
Fix it fast! Our guide shows you how to create fully rendered static pages with Angular Universal SSR (without JavaScript), complete with setup instructions and code.
🔗 Check it out now 👉 mobisoftinfotech.com/resources
#Angular #AngularUniversal
#Angular19 #SSR #SEO #AngularTutorial #CodeGuide #MobisoftInfotech