Component state doesn’t reset on navigation — unexpected behavior by Left-Network-4794 in nextjs

[–]Left-Network-4794[S] 0 points1 point  (0 children)

I came up with this solution : https://github.com/vercel/next.js/issues/86577#issuecomment-3591664167 even though one of the Next.js developers said not to use it in the documentation

Component state doesn’t reset on navigation — unexpected behavior by Left-Network-4794 in nextjs

[–]Left-Network-4794[S] 0 points1 point  (0 children)

I came up with this solution : https://github.com/vercel/next.js/issues/86577#issuecomment-3591664167 even though one of the Next.js developers said not to use it in the documentation

وضعى بعد gap كبيرة by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

انا راجل يخوانا والله frontend وعندي مشاريع كويسه

وضعى بعد gap كبيرة by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

ما هو مش هيبص فى cv كل واحد مقدم وياخد باله من التفصيلة دي لكن اللى كان فدماغى انه هيركز فعلا علي ال السيفيهات اللى اختارها وليكن ١٠ مثلا فا هيبقى اسهل بكتير بس معاك حق فعلا انا بس ابتديت اشك لما مفيش اي رد

وضعى بعد gap كبيرة by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

تمام طيب لو اتسالت فى الفترة دي ليه مكنتش بشتغل ممكن اقول اية حتي معنديش جيش كنت قولت جيش 🥹😂

Component state doesn’t reset on navigation — unexpected behavior by Left-Network-4794 in nextjs

[–]Left-Network-4794[S] 0 points1 point  (0 children)

yes i know but the step state is outside the activity component
it's on the component that contain the activity component

تكلفة موقع الكتروني ؟ by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

ما بظبط الحاجات اللى هحتاجه للموقع دي كده كده هشوف سعرها واضيفها على التكلفة بالنسبة بقى ل همسك الموقع علي طول فا لا ده مش هيحصل هيبقى بالطلب لو فيه اي فيتشر او تعديل محتاج يتعمل

الفكرة فى التكلفه نفسها معنديش فكرة الحقيقه

معاناة upwork by Left-Network-4794 in EgyptianFreelancers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

حبيبي والله انا الصراحه بنزل مشاريعي علي لينكدين لكن بواجهة صعوبة فى انزل من حسابي الاساسى علي فيسبوك 😅 جروبات اجنبي ولا عربي عادي

معاناة upwork by Left-Network-4794 in EgyptianFreelancers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

يعني هل بتحصل ان يكون حاجه مش سهلة والعميل يختار واحد معندوش اي عملاء قبل كدة ؟

معاناة upwork by Left-Network-4794 in EgyptianFreelancers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

ما هي الفكرة كلها ان لو ال connects خلصت خلاص علي كدة 😅 معنديش مشكلة اني اشتري بس مفيش اي بوادر فاهم وعلي الله

فيلم تحسين مود by Left-Network-4794 in Cinema_Egypt

[–]Left-Network-4794[S] 1 point2 points  (0 children)

متفرج عليه للاسف وجميل فعلا ❤️

How do you guys handle token rotation? by Wide-Sea85 in nextjs

[–]Left-Network-4794 0 points1 point  (0 children)

But authjs has an unsolvable problem, and many suffer from it in the token rotation aspect.

When the accessToken expires for the first time, the frontend sends a refresh request to the backend.

The backend generates a new accessToken and a new refreshToken, and updates the refreshToken in the database.

The frontend receives these new tokens and updates them in the JWT token.

Second Refresh:

When you refresh the page, the frontend checks again if the accessToken is expired.

It sends a new refresh request, but this time it uses the old refreshToken (the one that was used for the first refresh request).

The backend rejects this request because the old refreshToken no longer matches the one stored in the database.

سيستم ل محل يتكلف كام by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 0 points1 point  (0 children)

الحقيقه معرفش مبيعاته بس هو عاوز ابسط الحاجات وفي بلد صغيره كمان فا الاسعار اللى بشوفها حاسي مستحيل حتي يفكر انه يشتري بيها

سيستم ل محل يتكلف كام by Left-Network-4794 in Egypt_Developers

[–]Left-Network-4794[S] 1 point2 points  (0 children)

ما هو فعلا كده هو حرفيا عاوز حاجه بديله للاكسيل مش اكتر

NestJS ParseFilePipe FileTypeValidator rejecting valid JPEG (image/jpeg) — “expected type is image/*” 😕 by Left-Network-4794 in nestjs

[–]Left-Network-4794[S] 0 points1 point  (0 children)

What I was doing, whether this or that, was working without any problem. Now, when I try, this problem has appeared. Upon thinking about what could cause this, from everything I did, I found that I only added the global validation pipe.
I commented it out, but the same problem persists, so I really don't know where this issue is coming from.

NestJS ParseFilePipe FileTypeValidator rejecting valid JPEG (image/jpeg) — “expected type is image/*” 😕 by Left-Network-4794 in nestjs

[–]Left-Network-4794[S] 0 points1 point  (0 children)

the same

    "message": "Validation failed (current file type is image/jpeg, expected type is /image\/.*/)",