Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,704 members, 7,809,676 topics. Date: Friday, 26 April 2024 at 12:56 PM |
Nairaland Forum / SqueezedPant's Profile / SqueezedPant's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 pages)
Programming / Re: How To Set Character Limits In React JS With Linear Progress Bar by SqueezedPant: 4:12pm On Apr 25 |
Stress , Just use zod + React hook form |
Programming / Re: Redux RTK Vs React Query For Fetching Data And Inifiite Scroll by SqueezedPant: 12:05pm On Sep 14, 2023 |
LikeAking: Opposite for me here , i prefer the tech and coding aspect , i am not intrested in any executive position even if they bring more money |
Programming / Re: Redux RTK Vs React Query For Fetching Data And Inifiite Scroll by SqueezedPant: 12:03pm On Sep 14, 2023 |
LikeAking: I understand your point but using libraries dedicated for fetch is better than the default fetch alone esp for big web applications Things like revalidate , caching , fetching on server side can’t be done with the default fetch alone |
Programming / Redux RTK Vs React Query For Fetching Data And Inifiite Scroll by SqueezedPant: 5:50pm On Sep 13, 2023 |
Which do you prefer , i prefer React Query to redux React Query + server actions Why i like it: You can hydrate directly from the server components react query hooks and the client updates itself immediately after it has hydrated I don’t know if it can be performed with RTK tho never tried it out, which do you prefer and wyy |
Programming / Re: Implemented Stripe Api + Webhook On Both Next Js Api And Express Api by SqueezedPant: 5:46pm On Sep 13, 2023 |
The reason why I implemented server actions (not serverless) my mistake was because i wanted a situation that would make everything become faster. With next js 13 server actions , you can write all your whole logic in the server without worrying about it coming to hydrate in the clients , so i tried and it was fast. All in all , React server component is a beast |
Programming / Re: Implemented Stripe Api + Webhook On Both Next Js Api And Express Api by SqueezedPant: 5:45pm On Sep 13, 2023 |
Mayowadre: Okay , sorry i have not replied early been busy with my teaching work Okay first is to get the stripe secret key from the dashboard , then set up a function in the cart component that listens to an event click , i pass in an id , quantity , price and other necessary data as the body data then after , i await the stripe checkout session and also expect a stripe session ID to be returned In the backened i recieve the customer name , payment method and line items data from the frontend and also set up a success url or failure url I create another file to listen to events called stripe webhooks , it listens to the various events happening during the stripe checkout session then i plug in my postgres adapter to it to send a confirmation status when the payment becomes successful back to the database and also the session ID so service gets discontinued incase the subscription expires 1 Like |
Programming / What Authentication Service Or Library Do You Guys Use For Your Web Application? by SqueezedPant: 11:53am On Sep 05, 2023 |
I use clerk dev because of the flexibility it offers so well , what about you guys ? |
Programming / Implemented Stripe Api + Webhook On Both Next Js Api And Express Api by SqueezedPant: 9:09pm On Sep 04, 2023 |
I implemented stripe API + webhooks (listened to events and sent the transaction session ID to the database ) did subscription based services rhat would expire after one month and stop access. Did it on both Express JS and next JS API (serverless) , if you are having problem implementating with either tech , you can comment and i would be willing to help |
Programming / Shadcn Is The Best UI For React Projects by SqueezedPant: 10:48pm On Aug 28, 2023 |
Shadcn has ti be the beat UI for React projects in my opinion. Works well with tailwind CSS and it is easily customizable, you can create your own themes as well and customize rhe built in theme from rhe scratch to your own taste. What makes it great as well is it iS NOT a component like other UI. any other suggestion ? |
Phones / Re: Nothing Phone 2; Everyone Is Using Iphone, Here's Something Different by SqueezedPant: 10:05am On Aug 24, 2023 |
I’m suprised people in nairaland phone section don’t know about nothing phone , even saying it fake lol |
Programming / Re: I Can't Code Off My Head. I'm I The Only One by SqueezedPant: 2:12pm On Aug 15, 2023 |
Who should tell him ? Even too engineers code from other sources , how do you want to master thr syntax from many libraries in your heax |
Phones / Re: Iphone Must Use by SqueezedPant: 4:17pm On Aug 14, 2023 |
I have an xsmax atm and i still prefer to use my redmi note 10 pro for my everyday use. |
Programming / Re: I Need Developers by SqueezedPant: 1:52am On Aug 10, 2023 |
“For me to look at them” holy shit 5 Likes |
Programming / Re: How Do Developers Handle Authentication? by SqueezedPant: 9:45pm On Aug 08, 2023 |
eazycash: NextAuth , Next Js 13 app directory |
Programming / How Do Developers Handle Authentication? by SqueezedPant: 1:38pm On Aug 08, 2023 |
I am currently making a file storage system for organizations as a side project , using next auth for the authentication(I don’t know how to roll my auth). Now the issue i am having is whenever i refresh the page , the session disappears for some seconds. Now this is where the problem is , as the session disappears , some routes are protected in the middleware.ts file. So immediately , the routes get locked. So how can i save session so that maybe if there is a 1 minute network blackout , i won’t get locked out immediately. I have ruled the idea of saving in local because if the network gets switched off completely , it would still be saved in there. And you cannot revalidate local storage based on “network timeout” . I would appreciate your help on this @qtguru please i would need your expert opinion here |
Programming / Can You Go Search For Work In Person As A Developer ? by SqueezedPant: 3:22pm On Aug 07, 2023 |
Been thinking wether it is possible to go in person to companies to ask them about vacancies ? Is that possible or online is the way now ? |
Programming / Imessage Web Group by SqueezedPant: 5:06pm On Jul 13, 2023 |
Is there an iMessage group chat for web developers , not everyone uses WhatsApp , i would gladly appreciate if someone can add me |
Phones / Who Is In Benin And Want To Sell An X Or XR Asap For Lesser Amount by SqueezedPant: 1:13pm On Jun 20, 2023 |
indicate with phone no , price , picture , would not need by end of today |
Phones / Re: Just Got Android 13 On My Redmi Note 10 Pro by SqueezedPant: 12:25pm On Dec 23, 2022 |
innobarca: Yes ,I can |
Phones / Re: Please Help!! Is It Possible To Downgrade My Huawei Nova 71 by SqueezedPant: 11:13pm On Nov 30, 2022 |
Thebadpolitican: /demonflowne Text me on telegram and I would give you my WhatsApp number |
Phones / Re: Please Help!! Is It Possible To Downgrade My Huawei Nova 71 by SqueezedPant: 5:45pm On Nov 30, 2022 |
Thebadpolitican: You can install a custom ROM on it , would be easier that way |
Phones / Re: Please Help!! Is It Possible To Downgrade My Huawei Nova 71 by SqueezedPant: 12:53pm On Nov 21, 2022 |
Yes , it's possible |
Phones / Re: Redmi Note 11 Unboxing, First Impressions And Price (photos) by SqueezedPant: 7:47pm On Oct 13, 2022 |
DarkJeddi: Battery percentage showing in battery icon is a good innovation |
Programming / Re: Is Mac Pro 2012 Still Relevant For Programming In 2022? by SqueezedPant: 6:28pm On Oct 13, 2022 |
IhateRetards I saw you saying on diary that you now understand time complexity through an Indian guy on YouTube Can you send the link ,please ? |
Romance / Someone Just Got Me This Bulb ,how Is It Used by SqueezedPant: 8:23am On Oct 01, 2022 |
It doesn't seem to enter the lamp holder ,so how can I use it
|
Computers / Re: Used Hp Elitebook Touchscreen with keyboard light by SqueezedPant: 1:35pm On Sep 21, 2022 |
What's the spec |
Phones / Re: Which Phone Are You Using And How Much Did U Get It by SqueezedPant: 12:01pm On Sep 16, 2022 |
Redmi note 10 pro , got it around late last two years or early last year , forgotten Sha 120K |
Programming / Is Mac Pro 2012 Still Relevant For Programming In 2022? by SqueezedPant: 11:15am On Sep 16, 2022 |
Someone wants to get sth like this and he said I should ask people who know better ,so I want to ask people here for their inputs |
Computers / Re: Which Laptop Is Recommended Budget 250k by SqueezedPant: 3:58pm On Sep 13, 2022 |
quickhubservice: How much are you willing to sell it |
Computers / Who Has Dell 7480 For Sale ? by SqueezedPant: 3:24pm On Sep 13, 2022 |
Drop your contact if you have it , I'm willing to get |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27 |