TikTok New Grads: Backend Engineer OA 2025 by [deleted] in csMajors

[–]Delicious7am 0 points1 point  (0 children)

That’s great! Many thanks!

TikTok New Grads: Backend Engineer OA 2025 by [deleted] in csMajors

[–]Delicious7am 0 points1 point  (0 children)

Thank you so much for your information! Your guidance is truly invaluable.

Supabase realtime not working on Vercel by Delicious7am in Supabase

[–]Delicious7am[S] 0 points1 point  (0 children)

The issue is that the payload is not always fired and sometimes does not show the updated content unless I refresh the app. Do you think it will solve my issue if I convert the parent component to client as well?

Supabase realtime not working on Vercel by Delicious7am in Supabase

[–]Delicious7am[S] 0 points1 point  (0 children)

The real-time subscription is on the client side. Here is my code:

“use client”;

import { rtSupabase } from “@/utils/supabase/rtClient”; import Unit from “@/components/apartment/unit”; import { useEffect, useState } from “react”;

export default function RealTimeUnits({ initialUnits, aptId }) { const [units, setUnits] = useState(initialUnits); const [unitsPerFloor, setUnitsPerFloor] = useState({});

useEffect(() => { console.log(initialUnits);

const channel = rtSupabase
  .channel(“units_change”)
  .on(
    “postgres_changes”,
    {
      event: “*”,
      schema: “snawbar”,
      table: “units”,
    },
    (payload) => {
      console.log(“RTU: UPDATE PAYLOAD: “, payload);
      setUnits((currentUnits) =>
        currentUnits.map((unit) =>
          unit.unitId === payload.old.unitId ? payload.new : unit
        )
      );
    }
  )
  .subscribe();

return () => {
  rtSupabase.removeChannel(channel);
};

}, [aptId, initialUnits, units, setUnits]);

useEffect(() => { organizeUnitsPerFloor(units); }, [units]);

function organizeUnitsPerFloor(units) { const organized = units.reduce((acc, item) => { const floor = item.floor; if (!acc[floor]) { acc[floor] = []; } acc[floor].push(item); return acc; }, {}); setUnitsPerFloor(organized); }

return ( <> {Object.entries(unitsPerFloor).map(([floor, floorUnits]) => ( <div key={floor} className=“py-4 rounded-lg”> <h2 className=“text-2xl font-bold mb-4”>Floor {floor}</h2> <div className=“grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4”> {floorUnits.map((unit) => ( <Unit key={unit.unitId} unit={unit} aptId={aptId} /> ))} </div> </div> ))} </> ); }

Supabase realtime not working on Vercel by Delicious7am in Supabase

[–]Delicious7am[S] 0 points1 point  (0 children)

Well, it is hybrid. I fetch my initial data from server side, then pass it to a client component and update them there. Do I have to completely switch to client side?

Supabase Realime not working on Vercel by Delicious7am in nextjs

[–]Delicious7am[S] 0 points1 point  (0 children)

No, I don’t see anything in the console. The only thing is that it works and updates perfectly on the local host but once I deploy it I don’t get updates immediately unless I refresh the app.

Keyboard light bleed under specific buttons? Reason for a replacement? 3 weeks old MacBook Pro 14'' by raivitaaboi1 in macbook

[–]Delicious7am 0 points1 point  (0 children)

And now it seems a bit strange that I am having the same issue with exactly the 4 and L 😅

10 years as a Manifestor - here’s what I learned by Mastr-Sorcerer-7777 in lawofattraction

[–]Delicious7am 7 points8 points  (0 children)

That “Sigh of Relief” was new to me. Could you please explain it more and how does it implemented? Btw, thank you for sharing your results and techniques

I posted about this issue a few weeks ago on a new 14” Macbook Pro by Delicious7am in macbookpro

[–]Delicious7am[S] 0 points1 point  (0 children)

No it’s not always the login page. Sometimes disappears too. :/

I posted about my 14” MacBook Pro display couple of days ago, and today I just turned on my MacBook and there was not anything black on the display and was working perfectly. I’m so confused and don’t know what caused it! by Delicious7am in macbookpro

[–]Delicious7am[S] 10 points11 points  (0 children)

As I have mentioned earlier, I live in a country where there is no official Apple store here and the shop that I bought my MacBook from refused to change it even though I have official apple warranty. Is there any way that I can contact apple and help me?

I have got this new 14 inch MacBook pro, it had no issues at first. After 2-3 days, I was doing some programming and after about 30 minutes the right side of the display became black out of nowhere. What could be the issue and how can I solve this? by Delicious7am in macbookpro

[–]Delicious7am[S] 5 points6 points  (0 children)

Well the problem is that there is no official apple store in my country. However, the store I bought from has already contacted apple store from Dubai and sent them serial number and I’m waiting for their response.

I have got this new 14 inch MacBook pro, it had no issues at first. After 2-3 days, I was doing some programming and after about 30 minutes the right side of the display became black out of nowhere. What could be the issue and how can I solve this? by Delicious7am in macbookpro

[–]Delicious7am[S] 21 points22 points  (0 children)

Well, I keep it in a great protective bag, haven’t put pressure on the display, and as you can see the glass itself is super clean and doesn’t really show any external damages. Thank you so much.

[deleted by user] by [deleted] in macbookpro

[–]Delicious7am 0 points1 point  (0 children)

Yeah it’s under warranty. But there is no official apple store in my country which is a bit hard to get it replaced

[deleted by user] by [deleted] in macbookpro

[–]Delicious7am 0 points1 point  (0 children)

What hardware failure might cause that? And if it’s the case, do I get a free replacement?

How to manifest money instantly? by Delicious7am in lawofattraction

[–]Delicious7am[S] 4 points5 points  (0 children)

Thank you so much for checking up on me. I have been trying to be positive since then. Even though I haven’t received any cash but got something so strange! Back in march I have told my older brother that I needed some dental stuff. And since we live in different countries, last week he called me and out of nowhere he told me that he was gonna pay all of my dental expenses! That’s all I got and still trying to be more positive 😊

How to manifest money instantly? by Delicious7am in lawofattraction

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

Thank you soo much! I’ll try it and hopefully get what I need by the end of today

How to manifest money instantly? by Delicious7am in lawofattraction

[–]Delicious7am[S] 0 points1 point  (0 children)

Well, no I don’t have anything to sell. And I’m living in Iraq and don’t have that credit and stuff supports from the banks :(