ديان
ديان
TTCTheo's Typesafe Cult
Created by ديان on 7/2/2023 in #questions
My DaisyUI button is not firing onClick function
I was trying to make a button which add a product in my cart. But the button is sometimes firing the onClick or sometimes it doesn't I can't understand the exact reason Here's my code:
<button
className="btn btn-primary"
onClick={() => dispatch(cartSlice.actions.addToCart(product))}
>
Add to cart
</button>
<button
className="btn btn-primary"
onClick={() => dispatch(cartSlice.actions.addToCart(product))}
>
Add to cart
</button>
7 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Store data in object format in prisma (MongoDB)
8 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
How to create object in prisma models (MONGODB)
I want to create an object in my model named orderData:
orderData = {name, email, service, note}
orderData = {name, email, service, note}
I want to create a property name orderData and these properties will be there
5 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Next auth try signing with a new different account
I tried to make login functionality with google sign in but it's saying "try signing with a new different account" all the time
19 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
How to use yarn in create-t3-app ? [SOLVED]
Just started discovering t3 and noticed that it ran npm install in the initialization part. what's the way to install dependencies with yarn?
6 replies