Questions tagged [server-side-rendering]
Server-Side Rendering (SSR) is a technique for rendering a client-side app on the server.
server-side-rendering
4,946
questions
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 ...
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 ...
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"; ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 (
...
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 ...
-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 ...
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', '@...
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 ...
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 ...
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 ...