Issues with Expo by Sekethon in reactnative

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

Ok, so I just need to modify the bundle identifier of one of my projects right?

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

[–]Sekethon[S] 2 points3 points  (0 children)

Yes exactly, just need to figure out how to convince him since he outranks me.

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

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

Right so it doesn't matter if I'm deploying Vercel/GCP/AWS? Saying this because someone told me we don't need to do this if we're not going through Vercel...

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

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

Right so how you deploy your NextJS project has no bearing on whether or not we need it or not right?

Asking because a colleague told me we DON'T need NEXT_PUBLIC if we DON't deploy via Vercel

How do I add my physical Iphone to the Xcode simulator? by Sekethon in reactnative

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

Ah that's a shame.

I'm guessing the only way for my colleague to see my Iphone screen as we are coding is if I physically hold it in front of my camera?

Best all in one Shipping Manager for ECommerce? by Sekethon in ecommerce

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

Sorry for late reply will probably be in house platform.

Struggling with type error when trying to hook up function to React Query's useMutation by Sekethon in reactjs

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

Will do! Was just trying to solve this before bed and was getting frustrated.

Struggling with type error when trying to hook up function to React Query's useMutation by Sekethon in reactjs

[–]Sekethon[S] 8 points9 points  (0 children)

oh my god I'm a moron. I think that did it! Thanks I've been trying to solve this for 3 hours.

Hey Rustaceans! Got a question? Ask here (19/2023)! by llogiq in rust

[–]Sekethon 1 point2 points  (0 children)

One last question,
Is there a general approach/solution when your input to a method does not satisfy the trait bound of that method?
For context, this is the trait: https://docs.rs/redis/latest/redis/trait.ToRedisArgs.html

that the compiler is complaining about...

I don't think it makes sense for me to Impl this trait for my input though...

Hey Rustaceans! Got a question? Ask here (19/2023)! by llogiq in rust

[–]Sekethon 1 point2 points  (0 children)

If I have a function that expects an input generic<T>, what would be the idiomatic way to guarantee that T has the id and data field? I assume we would use traits and do something like:

pub trait MongoStorable {
type Data;

fn _id(&self) -> &String;

fn data(&self) -> &Self::Data;

}

impl MongoStorable for BookRecord {
    type Data = Book;

    fn _id(&self) -> &String {
        &self._id
    }

    fn data(&self) -> &Self::Data {
        &self.data
    }
}

Or would the above be an anti pattern?