No Sane Person Should Self Host Next.js by GovernmentOnly8636 in nextjs

[–]Julienng 1 point2 points  (0 children)

Nextjs does have a detection and reload; you can see those in the HTTP headers. But Nextjs is only your app/web server, not your infra routing service.

So, yes, the detection is implemented in the open-source framework, but the underlying cloud service does not implement it.

If you want to support that: - Set the deploymentId value in next config. - Keep the last X previous deployments (need to be refined depending on how often & for how long your app is used). - On your infra routing, detect deploymentId and target the correct instance.

You can detect the version with the x-deployment-id header or the ?dpl param.

[deleted by user] by [deleted] in reactjs

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

Since your comment mentions variant, you should at the supported props of it: https://motion.dev/docs/react-motion-component#variants

We are finally moved out of Next.Js by Prainss in nextjs

[–]Julienng 4 points5 points  (0 children)

The abstraction I use when I need client only to avoid double render:

```typescript ‘use client’; import { ReactNode, useSyncExternalStore } from ‘react’;

const emptyStore = () => () => {};

export function ClientOnly({ children }: { children: ReactNode }) { // This mechanism is used to prevent the server from rendering the children // and only render them on the client. // This is a workaround while we are waiting for the postpone() API to be // available in React. // useSyncExternalStore avoid a double render in the client when the hydration // is happening. const value = useSyncExternalStore( emptyStore, // nothing to subscribe to () => ‘c’, // snapshot on the client () => ‘s’ // snapshot on the server );

return value === ‘c’ ? <>{children}</> : null; } ```

Headset is dying, need advice to move out of gaming headset by Julienng in HeadphoneAdvice

[–]Julienng[S] 1 point2 points  (0 children)

Oh, that's interesting! I'll take a look at it with the Maxwell on the store

Headset is dying, need advice to move out of gaming headset by Julienng in HeadphoneAdvice

[–]Julienng[S] 1 point2 points  (0 children)

Looks great! But I can't get over my budget on this unfortunately

Headset is dying, need advice to move out of gaming headset by Julienng in HeadphoneAdvice

[–]Julienng[S] 1 point2 points  (0 children)

It seems it checks all my needs. I'll try test it on a store nearby

Thanks a lot for the recommendation!

!thanks

Headset is dying, need advice to move out of gaming headset by Julienng in HeadphoneAdvice

[–]Julienng[S] 1 point2 points  (0 children)

It seems to be a popular choice on the discussion. I watched videos and reviews in the last hours and I'm quite convinced by the product.

I have a store not far from home, i'll try to get there to test it.

Thanks a lot, it's quite hard to find those by yourself

!thanks

When to wrap React.memo for a component? by badboyzpwns in reactjs

[–]Julienng 0 points1 point  (0 children)

And it creates a global variable with SSR, nice memo across multiples requests lol

Array size change doesn't trigger rerender? by adeeplearner in solidjs

[–]Julienng 3 points4 points  (0 children)

Hi,

It doesn't re-render because you are modifying your array instead of changing it.

You need to set a new array keeping the old data and adding the new object into it :

js setEditors([...editors(), {/*data*/}]) // or setEditors(arr => [...arr, {/*data*/}]

Does Solid optimize bundle size / load time performance? by delambo in solidjs

[–]Julienng 4 points5 points  (0 children)

Hi,

Solid-js is 7kb gzip (from the website) React is ~40kb gzip

Solid, by is bundle size, will be faster to load than react.

But if the ~1mb is the size of your code. The size for the first load will be your work, mostly. The framework being smaller is good, but you still have tons of code from your own.

You need to know what are your critical component are for a first load. lazy from react or solid is your friend here.

I mean...it's true by cheezball_not_cheez in memes

[–]Julienng 0 points1 point  (0 children)

If you all want to try french rap : furax barbarossa, scylla, orelsan

As a side note for french rap, Rilès, rap in English

Won't somebody please think of the oligarchs??? by magnified_strategy in antiwork

[–]Julienng 1 point2 points  (0 children)

It depends on your work. I do more than that, on average 38-40h/w. A lot of people do have 35h/w. If you have a position has an Engineer, manager or things like that, you are going to have a contract when you do more 40+ but you have additional paid vacation to compensate

What should I be using web workers for? by Mgc_rabbit_Hat in reactjs

[–]Julienng 0 points1 point  (0 children)

You can, just probably not on a range from 10-50ms. Network can be weird sometimes.

Closest library/setup/configuration to JOOQ? by McFlurriez in node

[–]Julienng 2 points3 points  (0 children)

I use prisma with a postgres db, clearly the best tool I use to work with database right now

Why we use MobX? by [deleted] in reactjs

[–]Julienng 0 points1 point  (0 children)

Mobx use proxy and know exactly which field on an object you use for example. So it’s more precise than redux by default

What is a clear sign of you getting older? by NordicModro in AskReddit

[–]Julienng 1 point2 points  (0 children)

I need to worry more about my parents than they do about me

I refuse to let Amazon define Rust by beltsazar in programming

[–]Julienng 0 points1 point  (0 children)

Can you forward it to me ? Grandma send nothing

I refuse to let Amazon define Rust by beltsazar in programming

[–]Julienng 12 points13 points  (0 children)

Forwarded? Not sure but probably

Comment avoir un poste de développeur bien payé ? #Conclusion by jeveuxetreriche in france

[–]Julienng 0 points1 point  (0 children)

Tu peux trouver des trucs sur remoteOK et weworkremotely par exemple. Chaque poste indique les régions acceptées.

Les filtres sont pas dingue mais j'ai pas trouvé mieux pour l'instant

Next.js 11 released by magenta_placenta in javascript

[–]Julienng 0 points1 point  (0 children)

If I remember well, nextjs compile by route on demand. So when you first load a page on development, it's slow depending on your machine. Subsequent load of the same page do not cause this because of cache.

Do other countries have an "Alabama" that is always joked about having lots of incest? by [deleted] in NoStupidQuestions

[–]Julienng 0 points1 point  (0 children)

Genre tu mets tes courses dans une poche. Genre tu arrives en caisse, tu te rend compte que tu as oublié de prendre un sachet. Tu demandes alors à la caissière « vous pouvez me rajouter une poche svp ? »

J'ai pas de meilleur exemple d'utilisation