11 questions
98
votes
2
answers
51k
views
What is Doctrine hydration? [closed]
I've read about hydration in doctrine's documentation but I still can't understand what it is.
Could someone please explain?
1
vote
2
answers
2k
views
Doctrine - OneToMany relation, all result row doesn't fetch in object
I try to get all my objects DemandCab with their children object (DecisionCab).
My 2 entities
/**
* DemandCab.
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="DemandCabRepository")
*/
class ...
10
votes
8
answers
14k
views
Next.js 15.0.3. Hydration failed because the server rendered HTML didn't match the client
I created the project with npx create-next-app@latest./ When starting the project, there is an error "Hydration failed because the server rendered HTML didn't match the client. As a result this ...
7
votes
1
answer
3k
views
Classes with data hydration / dehydration in typescript
I would like to share TS classes or interfaces between a React + TS frontend and node + TS backend. The problem is that TS types are stripped away in compile time, so I cannot use them when I want to ...
4
votes
1
answer
8k
views
NextJS+NextI18Next hydration error when trying to map through array: "Text content does not match server-rendered HTML"
I have a Next JS app with Next-i18next localization and SSR. It works fine in all cases except in one case where I have a custom carousel component on a page that takes in an array of objects as a ...
2
votes
1
answer
920
views
Why does the project initialized with Remix's Indie stack get the error Hydration failed in Devtools?
When I was learning Remix, I followed the tutorial to initialize a project, but when I opened Devtools, I saw several errors reported on the console.
Warning: Did not expect server HTML to contain a &...
2
votes
1
answer
4k
views
Angular 17 SSR, HTTP request server side only
I've been trying out Angular 17's SSR feature. Coming from Next.js, I'm wondering if there's any way to run code only on the server side?
I have tried to use platform ID to figure out where the ...
2
votes
1
answer
1k
views
Make Doctrine skip fields/columns during INSERT INTO that are read-only
I have a PostgreSQL table t with columns t1, t2, …. I need to filter a collection of the entities before hydrating all objects by Doctrine due to efficiency reasons. However, the Criteria class ...
1
vote
1
answer
328
views
Hydration issue when server-side loading HTML content
I am loading HTML content from a Supabase repo. When I display the content without the @html tag it shows (as plain text), but when I encapsulate it with {@html ...} nothing is shown and I get a ...
1
vote
1
answer
918
views
NextJS custom component hydration
I have page with "getServerSideProps" functionality which makes API call and as a result receive page props. Props have different fields and one of them contains raw html string (example ...
0
votes
1
answer
640
views
Must i resolve warnings which just show in local host or ignore them?
I have some warnings such as hydration warnings in nextJs, which just show in my local host and every thing is ok in stage and production .
I've tried to solve hydration warnings before but because of ...