Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [server-side-rendering]

Server-Side Rendering (SSR) is a technique for rendering a client-side app on the server.

server-side-rendering
0 votes
1 answer
15 views

Angular 18 error did not render in 30 seconds on consume apollo

i discovered an error using Angular 18 SSR trying to control error response from grapqhl-apollo, the server method return error after 30 seconds and from angular client with the observable i must only ...
Dr oscar's user avatar
  • 407
0 votes
1 answer
12 views

babel-plugin-styled-components works well with NODE_ENV=development but not with NODE_ENV=production in React app

I am facing the following situation in my React App. I use babel-plugin-styled-components. When NODE_ENV!==production classes are generated and injected in the head tag and used by the React ...
roggc's user avatar
  • 13
0 votes
0 answers
5 views

How can i get user id from nextjs using next-auth.js in server side?

I want to access the user id on my server-side in the next js 14 i want how to get user id from next-auth in server side component when i add import { getServerSession } from "next-auth"; ...
sarthik navadiya's user avatar
0 votes
1 answer
28 views

How to fetch data for Client Components on server-side

When I say Client Components -> I mean files that uses use client at the top of it, and Server Components — files that are using use server accordingly Nobody says, how to fetch data on the server ...
Ahmed Faraz's user avatar
0 votes
0 answers
14 views

How can I fix react hooks in a React SSR project?

I try to migrate an existing project in js using express and ejs to render templates. I used react and react-dom. But the issues are that hooks and onChange don't work. I'm going to share the client ...
Jorge Contreras's user avatar
0 votes
1 answer
41 views

How to preserve state in Blazor 8 with static SSR

I have Blazor Web App, interactive mode is Auto and location per page/component. Since App, Routes and Layouts are rendered statically on the server, every navigation causes BrowserInfo(registred as ...
Bruce's user avatar
  • 11
0 votes
0 answers
21 views

Next.js server-side form | validation

I have a server component of registration form in my project. I need to inform user if the data he entered is invalid. Like if the e-mail, that he entered is already in use. But after the form is ...
Ziferus's user avatar
0 votes
1 answer
42 views

RTCPeerConnection is not defined

I have an Angular application with server side rendering. I have created a WebRTC service that works fine in unit tests. However, when I run the application I get the following error: ...
Some of the Things's user avatar
0 votes
1 answer
22 views

MongoDB SDK and NextJS Serverside rendering

all. I am using NextJS 14 and the app router. I have an image gallery. The Gallery page is server-rendered. const Gallery = async () => { const { images } = await getImages(); return ( ...
Zack Amin's user avatar
  • 526
0 votes
0 answers
30 views

Nextjs 14 right way call server actions on server components

I'm using nextjs 14 with server side actions. My issue is that everytime that I try to set new params it takes a lot to update them. I guess this is because the whole route is refreshed so the server ...
Luis Quiroga's user avatar
-2 votes
0 answers
21 views

CSR vs SSR with hydration

In what scenario would we want to do Client Side Rendering instead of Server Side Rendering with hydration? Wouldn't SSR always be a bit faster in terms of user perception and be preferred choice if ...
yume's user avatar
  • 7
0 votes
1 answer
25 views

Vite/Rollup: No name was provided for external module/Failed to resolve module specifier

For some reason, Rollup refuses to recognize my global external dependencies. From my vite.config.ts: export default defineConfig({ build: { rollupOptions: { external: ['radash', '@...
selfagency's user avatar
  • 1,560
1 vote
1 answer
31 views

Angular 18 SSR Vercel issue with 404

I can't make my 404 page using Angular SSR deployed on Vercel Serveless Function When accessing a bad url supposed to be 404 have this error This Serverless Function has crashed. its a 500 internal ...
The Segfault's user avatar
  • 1,021
0 votes
0 answers
29 views

Securely Fetching and Caching Polygons in Next.js for Map Rendering

Using Next.js, I want to implement the best practice for fetching polygons and displaying them on a map, while ensuring that the user is unable to see the data in the network tab. I have tried using ...
shaghayegh dehghan's user avatar
0 votes
0 answers
16 views

Why Do I See Pre-Rendered HTML in Source Code When Using 'use client' in Next.js?

js Community, I'm working on a Next.js application and have some confusion regarding pre-rendering and client-side rendering. I've been using the 'use client' directive at the top of my components to ...
kholio mudrich's user avatar

15 30 50 per page
1
2 3 4 5
330