Redux and NextJS 13 Tutorial | Redux Toolkit Tutorial With Next 13

  Рет қаралды 76,027

PedroTech

PedroTech

Күн бұрын

The first 1,000 people to use the link will get a 1 month free trial of Skillshare skl.sh/pedrotech06231
Join our Discord: / discord
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
🐙 GraphQL Course: codedamn.com/learn/graphql-fo...
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Linkedin: / machadop1407
Instagram: / pedro.fmachado_
Github: github.com/machadop1407
Business Email: pedro@pedrotech.co
🌟 Gear / Hardware I Use and Recommend 🌟
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 amzn.to/42kqFuM 💻 Monitor
🖱️amzn.to/3C0ZhHb 🖱️ Mouse
📷 amzn.to/3OHJvbM 📷 My Camera
🎤 amzn.to/3oxSthj 🎤 My Microphone
⌨️ amzn.to/3oFPpj1 ⌨️ My Microphone
⚡ amzn.to/3MYMnzM ⚡ LED Lights In the Background
Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
NEXT13 REDUX TIMESTAMPS
00:00 | Intro
02:00 | Project Setup
04:09 | Installing Redux
04:19 | What is Redux Toolkit?
05:57 | Creating a Redux Store
07:32 | Creating Reducers
07:42 | Creating the Auth Slice
18:20 | Creating the Provider
24:42 | Using Selectors
#nextjs #redux

Пікірлер: 138
@PedroTechnologies
@PedroTechnologies Жыл бұрын
The first 1,000 people to use the link will get a 1 month free trial of Skillshare skl.sh/pedrotech06231
@Jeridi
@Jeridi Жыл бұрын
Thanks Pedro
@shamstabraizbaig938
@shamstabraizbaig938 11 ай бұрын
I am experiencing an issue where I am unable to make progress due to an error. Here is the error message: "Unhandled Runtime Error Error: Could not find the react-redux context value. Please make sure that the component is wrapped in a ."
@onlineincomeideas6996
@onlineincomeideas6996 2 ай бұрын
Your theme
@patrickjreid
@patrickjreid Жыл бұрын
I am so grateful for your work Pedro. Your videos have been so helpful, and you are the only one I have found that is making useful tutorials for Next.js 13 app router. Around the time I ask myself a question, you made a video. Thank you so much!!!
@flaksparkle
@flaksparkle 10 ай бұрын
I read bunch of articles and watched a lot of videos this is the simplest and most structured video to use redux wit nextjs I really recomment it Thank you !!
@shahidshafi1227
@shahidshafi1227 Жыл бұрын
I spent the entire day working with Redux in my company's React project. I was feeling a bit confused about how to set it up in my current Next.js 13 project, but then I stumbled upon this helpful video. It was a pleasant surprise! 😊
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Glad I could help!
@rhiannonmonks6894
@rhiannonmonks6894 Жыл бұрын
​@@PedroTechnologies is it possible for you to provide the link to the Github repo, as I like to look over the code in a bit more detail. You say in your video you link to it, but I don't think it's there, only the one from your NextDeploy video. Thanks!
@SURAJKUMAR-gn7ep
@SURAJKUMAR-gn7ep Жыл бұрын
Hi sahid I want your help in nextjs so will you help me ?
@PmartN
@PmartN 5 ай бұрын
what company do you work in?
@omgitsjesus007
@omgitsjesus007 8 ай бұрын
Great video bro, thanks for keeping it simple and not over complicating
@danielcarlmanpessoal
@danielcarlmanpessoal Жыл бұрын
Great tutorial. Having said that, it makes me love Zustand even more. So much boilerplate for something that should be so simple.
@user-ve8ux5yy7y
@user-ve8ux5yy7y 9 ай бұрын
Thank you. I could not find how to use the Provider correctly in the new version and your video helped me
@k303k
@k303k Жыл бұрын
A massive thanks to you Pedro!.I always thinking the day I finish all of your react and mern tutorials I think i would become a better developer.Can't wait to finished learning all of your tutorials.I know most of the people can learn directly by reading some docs.But i'm not that kind of person.English is not my first language tho.But i saw your channel last 6 months ago.I finished your React series.And i can feel that your ways of teaching made my thinking of programming logic easier.I'm currently at my 3rd yr CS Uni.I want to say so so so thanks to you Pedro.Have a good day 🎉❤
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Happy to hear that you enjoy the content :)
@getinstant6122
@getinstant6122 Жыл бұрын
I really learned a lot , I would love it if you make a part 2 where you explain some advance redux concept...
@peirama2
@peirama2 7 ай бұрын
Pedro, mucho respect from Greece! you are my favourite tech youtuber
@FootballFanzZonee
@FootballFanzZonee Жыл бұрын
I was looking for this just yesterday. I also watched your last redux tuts. Good job!
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Glad I could help!
@kabeerahmad26
@kabeerahmad26 Жыл бұрын
I am going to start learning react js from your playlist. I hope that would immensely help me
@giwargis01
@giwargis01 3 ай бұрын
I'm a full stack web developer, I learned redux from documentation itself It might be confused when you learn it from there. But this video save you a lot of time, and explains redux pretty simple and cool, good job!!
@beyza2536
@beyza2536 Жыл бұрын
Thank you for your hard work! All your videos are very useful for us self-taught developers :)
@hajimeippo804
@hajimeippo804 4 ай бұрын
Thank you very much! Explained so well.
@JoelOluwafisayo
@JoelOluwafisayo 2 ай бұрын
great video man,you teach so well
@AlexSmith-ms9xb
@AlexSmith-ms9xb Жыл бұрын
Thank you so much! Please consider making a video with Zustand :)
@fosimuboolubo8891
@fosimuboolubo8891 2 ай бұрын
Came here cause I was getting errors trying to implement the Provider on NextJs. Thanks man.
@yassinebouchoucha
@yassinebouchoucha 8 ай бұрын
activated the notification belt, you saved me hour of debugging !
@shivangrathore
@shivangrathore 9 ай бұрын
I was trying to find out the bug in my redux setup for hours, it was working in the base path "/" but not on "/login" and then I found your video. The issue was I forgot to put "use client" in the login page. Thank you
@SohoCode
@SohoCode 11 ай бұрын
Respect. Easy and clear.
@SEMDOCTORS
@SEMDOCTORS 9 ай бұрын
I took a challenge that I will be creating e-commerce website from scratch with out knowing much about website development. I saw this video and was able to build a mockup in a day. Thanks bro
@Adam-oq4xq
@Adam-oq4xq Жыл бұрын
perfect timing bro thank you
@amineshon
@amineshon 4 ай бұрын
one of the best video of redux, so easy tech
@sbmfootballarena829
@sbmfootballarena829 Жыл бұрын
Wow bro I saw this first today and this is what I have been searching for😮
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Glad I could help!
@allankariuki9762
@allankariuki9762 Жыл бұрын
Thank you so much. I've spent days scouring the internet looking for a comprehensive guide and here it is. I have a question though, in trying to fetch data from an API, how would I go about that?
@gonzalobruna7154
@gonzalobruna7154 10 ай бұрын
I have the exact same question. What did you end up doing?
@ZoranEm
@ZoranEm 11 ай бұрын
fantastic video my guy
@agusdwimilniadi
@agusdwimilniadi 5 ай бұрын
Thankyou, this video is amazing
@xxXAsuraXxx
@xxXAsuraXxx 9 ай бұрын
Nice. Question is how do you use redux in a server component?
@bastienv6233
@bastienv6233 11 ай бұрын
Thanks so much bro. Your explanations always perfect. Typescript type for store that we exported is like a magic number for us.. how did you know this action was required?
@andreifilip8427
@andreifilip8427 6 ай бұрын
great tutorial!
@Lofausto66
@Lofausto66 9 ай бұрын
Thanks a lot man :D
@swire1571
@swire1571 5 ай бұрын
thanks bro you saved my day
@brienaustinclayton
@brienaustinclayton 5 ай бұрын
bro , does it work ?
@svay6849
@svay6849 8 ай бұрын
Thank's fo the video.
@pinkrosemoli
@pinkrosemoli 10 ай бұрын
Thank you.very clear!!! But what if you refresh the page? The state is lost. How would you persist it?
@gavit633
@gavit633 7 ай бұрын
this video is very helfull👍👍🔥🔥
@milanthakur4975
@milanthakur4975 10 ай бұрын
Thank you ❤
@solosdev6946
@solosdev6946 4 ай бұрын
Thanks man
@isipisiml4546
@isipisiml4546 Жыл бұрын
can you make a video on how to use the rtk query in ssr?
@giorgikiladze1151
@giorgikiladze1151 7 ай бұрын
thank you was really helpful. Is it common to use next13 with mobX instead of redux, i am asking because i didnt find any tutorial about combining next 13 with mobX
@guidocaru
@guidocaru 11 ай бұрын
Thanks!
@user-vs2cr2gs2w
@user-vs2cr2gs2w 9 ай бұрын
thank you guy
@christiannwodo2151
@christiannwodo2151 4 ай бұрын
Thank you
@marianaangel5338
@marianaangel5338 Жыл бұрын
Thank you!!!!
@agee3698
@agee3698 9 ай бұрын
Shouldnt we mutate values within reducers? As its using immer?
@najmulhc
@najmulhc 10 ай бұрын
Hey Pedro, nice video and that helped me a lot to use redux with my new next project. One simple dubt of me that if I use the use client in top of the provider component and it wrap everything in layout.tsx file, will the whole app be rendered in the client? as all of the children of client components render in the client. I may be wrong, can you kindly fix my dubt?
@emanuelmejia4525
@emanuelmejia4525 9 ай бұрын
I have the same dubt, is this the correct way to do it?
@tabaraksohail7764
@tabaraksohail7764 9 ай бұрын
If we had a password field too. How can we handle multiple values coming from the components? I mean we would have pass those in the login function?
@Hereisvito
@Hereisvito 10 ай бұрын
Can u make a room tour video ?❤❤❤
@Hhammer
@Hhammer Жыл бұрын
This video would have helped me 2 weeks ago 😅😅
@emporteme
@emporteme 11 ай бұрын
I really lost whole of my day just for looking tutorials about nextjs 13 redux thank you
@user-bi6rm2lf7o
@user-bi6rm2lf7o 8 ай бұрын
I left with so many questions about how to divide the actions and reducers to different files like I do in regular redux - I mean why did you write it all in one file? its not scalable Can you comment on this please?
@Hereisvito
@Hereisvito 10 ай бұрын
Bruh we really need a graphQl with Next 13 tutorial, too
@smreason
@smreason 7 ай бұрын
New to all this. But why nest your states under a 'value' property?
@caresbruh
@caresbruh 11 ай бұрын
could you please add the redux persist using this same project ?
@ashutoshdash1999
@ashutoshdash1999 11 ай бұрын
Which Icon extension are you using?
@ankitupadhyay918
@ankitupadhyay918 11 ай бұрын
It is very similar to the implementation in react ( javascript )
@shamstabraizbaig938
@shamstabraizbaig938 11 ай бұрын
I am experiencing an issue where I am unable to make progress due to an error. Here is the error message: "Unhandled Runtime Error Error: Could not find the react-redux context value. Please make sure that the component is wrapped in a ."
@jaysiefamily
@jaysiefamily Жыл бұрын
Could you make video about full structure for real work project such as make project with Nextjs + redux + mongo + tailwind + prisma + auth token ? Thank you
@user-kp2om1kn8x
@user-kp2om1kn8x Жыл бұрын
But we can only use client components in this video.
@horix-sound
@horix-sound 2 ай бұрын
in this case your web-site will not be indexed by search robots, right? I don't understand as well how indexing works
@the-LordXNobx
@the-LordXNobx 6 ай бұрын
great tutorial, but you can just separate typescript tutorial and the redux. confusing newbie like me😅
@arjunnayak9088
@arjunnayak9088 9 ай бұрын
What is the point of using app router if we are loosing the features of server side rendered pages if we make it use client?
@shivangbhardwaj1475
@shivangbhardwaj1475 4 ай бұрын
If we can use redux only with the client side , how can we use it to handle backend tasks and set that data to store?
@eshw23
@eshw23 Жыл бұрын
Would Redux in Nextjs not be overkill? Since libraries like Zustand and Jotai make state management so easy, unless maybe if your interviewing for companies with this stack it is good to know?
@parassharma7041
@parassharma7041 Жыл бұрын
Yeah I prefer Zustand so easy to use
@shriprasanna3918
@shriprasanna3918 Жыл бұрын
nice Video . What about Zustand (i think its better than redux )
@wilmacedo
@wilmacedo 10 ай бұрын
nice video dude! your linkedin profile url is broken actually, can u put here or update? I'm from brazil too (vamo dominar a gringa 👊)
@raimohaikari707
@raimohaikari707 4 ай бұрын
If you have to declare pages to "use client" is there any point of using next.js?
@bahaaaldeen9611
@bahaaaldeen9611 11 ай бұрын
great work man
@marianaangel5338
@marianaangel5338 Жыл бұрын
You're awersome!!!!
@PedroTechnologies
@PedroTechnologies Жыл бұрын
@romanmed9035
@romanmed9035 5 ай бұрын
can i upload to store by ssr not client side and use on client side?
@it_student855
@it_student855 Жыл бұрын
I didn't start next js yet but i came to give our channel the like and comment that it deserves ❤
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Thank you
@MauroMercuri
@MauroMercuri 11 ай бұрын
Hi Pedro! I found this video so interesting and after I tested it on local project, I've noticed that on "npm run build" the operation fail cause to "Cannot destructure property 'store' of 'useReduxContext(...)' as it is null." I've already searched this error but with no response and now I don't know how to continue it. Have you any suggest? What kind of Next version do you use? Thanks 💙
@nilin6769
@nilin6769 9 ай бұрын
ya when you try to call useAppSelector in layout.tsx ,this problem will arise because we are trying to call before wrapping. But iam wondering to manage that data in layout, i need that value inside layout. Iam stuck
@samuelvalentine7846
@samuelvalentine7846 4 ай бұрын
​@@nilin6769Hey man, did you fix it?
@nilin6769
@nilin6769 4 ай бұрын
@@samuelvalentine7846 we can use that in layout.tsx because it is like index.js in react. Change your folder structure instead
@KMordhwaj
@KMordhwaj 9 ай бұрын
in my case, dispatching from /login but on /dashboard state is not coming
@vladislavkornushenko
@vladislavkornushenko 5 ай бұрын
Thanks for the video. Can anyone please explain. Can I use Redux Store globally (it works only in client components) and use Server Components at the same time (because fetching data etc is only available in server components e.g. supabase). And it looks if I wrapped layout with provider - all nested components can't be server components (only client components)... so means no server components at all... or am I wrong?
@nikonfilanovsky7914
@nikonfilanovsky7914 2 ай бұрын
if I wrapped layout with provider - all nested components can't be server components - its not true, u can read nextjs docs for this thing
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 Жыл бұрын
How to use RTK Query and data caching with new 13 🙂
@mahdimotallebi7207
@mahdimotallebi7207 11 ай бұрын
What is your theme Vscode?
@user121304
@user121304 3 ай бұрын
DO u have a github link to this project? I searched in your repos and couldn't find it
@codedtrader4887
@codedtrader4887 11 ай бұрын
This all happens on the client side, do you know any possible way to implement it using the serverside components?
@helmi2376
@helmi2376 3 ай бұрын
redux is built only to deal with client component
@stAr13510
@stAr13510 Жыл бұрын
hey pedro my UI components in the Layout page have gotten all messed up when i wrapped the reduxProvider ,how do i fix it edit: i had to rebuild my react project to fix it ...not a tutorial problem 👍😹
@yasserhy
@yasserhy 9 ай бұрын
What will happen if you move to another page? the state in the store will be lost. How to handle that?
@varunneo560
@varunneo560 11 ай бұрын
But How do I solve the caching ? How would I store my state in client side since this code is rendered in server side ? I know we could use localstorage on the app directory , but how to use it on redux store itself ?
@downfall6223
@downfall6223 8 ай бұрын
good question, did you find any possible solutions?
@tabaraksohail7764
@tabaraksohail7764 9 ай бұрын
can anyone tell me which theme he is using for vs code?
@shehwar-dev
@shehwar-dev 8 ай бұрын
Great tutorial, thanks! One Qs, If we wrap the layout children with a Redux Store provider which is a client side component ( using "use client" ) then will it make all of its children CLIENT SIDE ? will all of my components will be rendered ONLY on CLIENT SIDE? Can someone please confirm this, I'm confused in this concept. Thanks!
@logiccomputer8000
@logiccomputer8000 7 ай бұрын
yes
@praiseoshilim1006
@praiseoshilim1006 4 ай бұрын
NO!!
@nenadrakovic
@nenadrakovic Ай бұрын
@@praiseoshilim1006 No man, if there is {children} in 'use client' file, children can be rendered on server as well
@user-xu1zy7pn2q
@user-xu1zy7pn2q 8 ай бұрын
how we can update value from rsc component why its not working
@DavidLucas-ci2fy
@DavidLucas-ci2fy 9 ай бұрын
I am facing an issue when I try to build the application using redux. Like I have this structure: | app page (render the components header and foodcard) layout | components | header (use redux data) | foodcard (use redux data) and the build return this error: [ ] - info Generating static pages (0/3)ReferenceError: Cannot access 'cart' before initialization But when I move the code from each component inside the page, it works the build :s Can someone help me out?
@ujangpudin2004
@ujangpudin2004 2 ай бұрын
Helo pedro, i am trying to set middleware using redux based on local storage or state from reducer but i don't find to handle this... Can you help me or anyone can help me?
@RohitKohli-rd7dh
@RohitKohli-rd7dh 14 күн бұрын
Provider' refers to a value, but is being used as a type here. Did you mean 'typeof Provider'? any one came across this?
@luxury5
@luxury5 7 ай бұрын
bro where is the GITHUB repo?
@DenisBilurka
@DenisBilurka 5 ай бұрын
But this way we disable SSR and basically all lose all benefits of next, dont we?
@user-wz6ov4uf5c
@user-wz6ov4uf5c 7 ай бұрын
I was expecting this tutorial to use next-redux-wrapper so I was very dissapointed to find out you just ended up with "use client", why bother with nextJS then ?
@simonzed704
@simonzed704 10 ай бұрын
thunks topic missing
@jacquelynecarmen
@jacquelynecarmen 2 ай бұрын
I don't think actually we need stat management in next js
@ichiroutakashima4503
@ichiroutakashima4503 Жыл бұрын
These updates be like, NextJS and React are basically turning into PHP so every react developer be like, HAS TO COPE.
@oook3407
@oook3407 10 ай бұрын
where is source code?
@gaming_zen_99
@gaming_zen_99 Жыл бұрын
Redux seems too much unnecessary steps. I moved to recoil. 😅
@logiccomputer8000
@logiccomputer8000 7 ай бұрын
using 'use client ' destroy your whole purpose of using next js which is ssr
@kailashjs
@kailashjs 3 ай бұрын
Then how will you be using react hooks without "use client" ?
@parenteseswebdev
@parenteseswebdev Жыл бұрын
Just some important info for you. I thumbed down all the videos as you can't watch them at all for any peiod of time for learning as you advert placement is all the time. Not worth wasting a subscription on your channel.
@TarasovFrontDev
@TarasovFrontDev 7 ай бұрын
too much bla-bla
@Presidentum
@Presidentum Жыл бұрын
I have an error in my provider.ts file, even if I follow exactly your code return {children}; : "'Provider' refers to a value, but is being used as a type here. Did you mean 'typeof Provider'?" And the import from react-redux does not seem to work even if I uninstall it and then reinstall it.
@niko4617
@niko4617 Жыл бұрын
same here, were you able to fix it
@Presidentum
@Presidentum Жыл бұрын
@@niko4617 yeah. Rename your file with .tsx. .TS file cannot render component
@niko4617
@niko4617 Жыл бұрын
@@Presidentum thank you!!! I later figured it out, such a silly mistake😂
@user-xz5cm5ix1c
@user-xz5cm5ix1c 11 ай бұрын
why not use wrapper? wrapper.withRedux()
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 155 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 182 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 11 МЛН
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 25 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 17 МЛН
DevOps Internship Program - 2.1 GitLab with Ansible ( Day - 5 )  Live
1:52:06
The Story of Next.js
12:13
uidotdev
Рет қаралды 545 М.
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 532 М.
NextJS + State Management = Good Idea???
41:08
Jack Herrington
Рет қаралды 97 М.
Learn Redux Toolkit in under 1 hour
58:10
Hitesh Choudhary
Рет қаралды 119 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 154 М.
Как работает автопилот на Lixiang L9 Max
0:34
Семен Ефимов
Рет қаралды 14 М.
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
Жёсткий тест чехла Spigen Classic C1
0:56
Romancev768
Рет қаралды 699 М.