This makes me wonder how, say a global state management like useContext, which will be used as a wrapper, and it state change reflecting in the children. As per the video, the children shouldn't rerender right when such a state change?🤔
Yeah. I think a query library integrated with Reduz would be helpful, but now i need to watch something else to get a better understanding of the differences between RTK Query and React Query.
Thank you so much for this video. It is well explained. Could you please help us understand sever-side pagination using url params, tanstack, shadcn/ui table
Great video! However, instead of managing the filters using client state, I suggest using URL parameters. This approach helps in sharing URLs with specific filter settings, making it easier for users to bookmark or share filtered views.
I don't understand why we need these strange things.. why he releases a function for us and we don't create it... const myfn=postSlice.endpoints.getPosts
Thank you alot. I used to code with Angular and had to learn the redux equivalent. I watched a few videos but all of them are really bad. This video explained it so simple
Why not use a children prop? Also, use a generic for the array, although it probably doesn't matter if the parent component doesn't do anything but map. Still, at least use an interface so you know your keys don't throw an error.
I started learning react last year. started with NextJs 13 with page router, RTK for api handling and state management, PrimeReact for ui lib (its pretty awesome), formik & yup for forms... I don't know should I go for vite, zustand, react query, react hook form, zod, shadcn way or not ??
Those are completely different things. - Vite is essentially the way to create SPA apps in React, when you don't need Next & SSR. - Zustand is essentialy the same thing as redux, but much simpler and easier to use. I'd recommend it, but RTK is also very common and can handle pretty much any task. - React Query generally is better than RTK Query, cuz it's less complicated, but if you already use RTK, is would make sense to use RTK Query as well. So => RTK + RTK Query OR React Query/Zustand, based on what you like more or have more experience with, - Formik & Yup & RHK & Zod are also your personal choice, doesn't really matter, all solve the same problems. - Shadcdn is just a component library - if you like it and it's enough to solve a problem - go for it!
@@geenius6994 thanks, I know & I have done works with vite, tanstack router with rtk & rtkq, also, does zustand & tanstack query has all the features of rtk & rtkq & yet simpler ? & is rhk simpler than formik ? (I dont want server side drama pages router for nextjs works great for me & easy to understand & use) cause I don't want anything complex in my codebase, React is already complex. now when react 19 will come we will be doing react once again in a different way. Suddenly PHP & Laravel seems far far better for creating web pages & web apps.
Small question for things like pagination will we pass the same way as limit and off you passed and then spread rhe data ? Also i have also seen useLazyGetAllMovies basics lazy in front of the same thing what does it do
1) yes, but pagination usually becomes more complicated than that (if you have some additional logic). 2) as far as i remember lazy query works the same as mutation, it gives you the function that you can manually trigger by calling it, while simple useQuery works immediately.
Thank you for the great video. Also, can you share the theme and ide settings you used? If you have shared it before and I missed it, please excuse me.