I haven't looked into MobX because I haven't had a need for it and haven't had any request for it in projects. Still good to know, so thanks for giving me a quick look.
@CodingNuggets3 жыл бұрын
Hey hey! Thanks for the pin Jack. I was just giving you accolades in Jesse's (codeSTACKr's Discord) for the weekly news inclusion. Love your content and watching you grow. Growing with you my friend. 🙂
@ngochunglongnguyen452310 ай бұрын
OMG you're a great teacher. You helpt me learn MobX in under 15mins while Redux and Redux toolkits took me at least 2 days to go through all the practical implementation. That is really productive.
@clins9415 күн бұрын
this is such a nice little video for introducing mobx ! thank you. i'm going to share it with the new hire since we will be using it on the project ❤
@НикитаКальнов-л8ш3 жыл бұрын
You deserve bigger audience with such a content! Thank you a lot for great introduction to MobX!
@sarthakshah22363 жыл бұрын
exactly
@craigjohnson82793 жыл бұрын
This is awesome, thanks Jack. I love that you did some Fetch requests as well! :)
@luisalejandropena50633 жыл бұрын
I was a little bit scaried about using Mobx but you explained so easy that I want to implement it. Thanks
@jherr3 жыл бұрын
Nothing to be scared about, MobX is good stuff.
@SachinDolta2 жыл бұрын
This is top notch high quality channel
@MaulanaRamaIbrahim2 жыл бұрын
Thankssss Jack, your videos are really helpful! I hope you continue to make more!
@sarthakshah22363 жыл бұрын
big thank you for the video. i can now efficiently use it in my projects
@Freedom_Code3 жыл бұрын
thx Jack , i'm working React developer , and i 'm beginner in TS and MobX, offcourse your code's strange for me, but i repeated my-self and it's greate. Good Luck and be healthy !
@Raubritterr2223 жыл бұрын
That SATURN V is gorgeous!
@HillelGarciaAustria3 жыл бұрын
Very well explained, thank you! I like the way you go straight to the point and the use of pure functions. You have +1 subscriber.
@rizwanatta78453 жыл бұрын
i was struggling with mobx to handle a small app as I am more inclined towards doing all with redux! but had to had it in this small all! so MOBX and your tuts helped! thanks
@cappuccinopapi30383 жыл бұрын
This is such a quality tutorial, great job!
@josemfcheo3 жыл бұрын
Just what I needed! Thanks!
@afganhalilov14422 жыл бұрын
Hi Jack, thanks for your videos, they are much helpful and superb! Hope you will continue to make so useful stuff
@lactobacillo793 жыл бұрын
Hi Jack, thank you so much for your videos. I love MobX too and MST, but in this example your are modifying directly some observables, meanwhile in the MobX documentation it's highly adviced to modify the observables properties using an action, what's your opinion about that? Regards...
@jherr3 жыл бұрын
In larger applications you definitely should use actions to mutate the state instead of directly mutating it.
@BlackSlimShady11 ай бұрын
Amazing content, thank you!
@Elantry3 жыл бұрын
Thank you! I've spent a long time on this. Easy as soon as it works :-)
@jherr3 жыл бұрын
Aint that always the way? 😀
@antongron Жыл бұрын
Thanks a lot for the video
@DOMAN893 жыл бұрын
Hi Jack I have some suggestion: 1. In your case you can omit the returning type of functions like in addTodo, because TypeScript is able to infer the type. 2. Maybe would be nice to show that, we can create for example: type AddTodo = (todos: Todo[], text: string) => Todo[]; and use it in this way: const addTodo: AddTodo = (todos, text) => [ .... But of course very nice video and thumb up :)
@TheScottShepard3 ай бұрын
The return type helps to make sure you don’t make mistakes internally to the function before returning the result. It’s a good idea to create a type contract before you write your logic. This is the same mindset as test-driven development where you first decide what your outcomes should be, then code your implementation to achieve your desired outcome. Happy coding!
@DiegoBM Жыл бұрын
Great video Jack, as per usual! Could we get access to that performance test you mention in the video? Thanks!
@tanercoder1915 Жыл бұрын
what playlist is this video belong to?
@balfouri45793 жыл бұрын
thank you so much for great video. i could understand so easily 👍
@andrewclarke8163 Жыл бұрын
Very helpful video! What are you using to change the way arrows and inequalities in your code are displayed?... I assume it's some VSCode plugin
@jherr Жыл бұрын
Enable ligatures with the a font that supports ligatures.
@MrJoaopaulofurtado3 жыл бұрын
Great video!
@Dysfunctional7042 жыл бұрын
Hi! I'm trying to learn MobX. With it, why would need React's context hook when I can just import my MobX container freely throughout the app?
@jherr2 жыл бұрын
I don't think you need to use context if you are using MobX.
@Dysfunctional7042 жыл бұрын
@@jherr Thanks Jack!
@zephyr2423 жыл бұрын
Hi Jack, great videos! Heads up, it looks like your Discord server invite link is invalid.
@jherr3 жыл бұрын
Yep. Looks like it times out? I need to write a script to update all the video descriptions. 😂
@AwadheshKumar-rk2mu Жыл бұрын
Hi Jack, Can you please make detail video on mobx.
@yogenp3 жыл бұрын
Been using Mobx lately and loving it. Any clues on persisting data without the use of decorator?
@jherr3 жыл бұрын
No, but as I recall they always have decorator-less alternative. So if you can't find it in the docs I'm sure you can ask in a support channel.
I'm not sure what that means. Could you clarify that a little?
@Freedom_Code3 жыл бұрын
@@jherr when you realised TodoStore you code functions with enter values, why you didn't use class methods ?
@jherr3 жыл бұрын
@@Freedom_Code Can you point to a particular time in the video where I do this?
@Freedom_Code3 жыл бұрын
Why independent functions instead class Methods ?
@jherr3 жыл бұрын
@@Freedom_Code Oh, I see, no particular reason. Feel free to drop to those in the class. Honestly, this video is part of a series of videos I've done across a variety of state managers. So if you are familiar with that series I use those same functions across all of them, and so it would let folks know that the implementation of addTodo isn't changing between any of them. They all do addTodo and removeTodo the same way. But you are correct, the "correct" implementation here would be to put that logic into the class.
@daheck813 жыл бұрын
Hey Jack, thanks for all your videos! What is your personal favorite when it comes to state management in a rather large project? The amount of state management tools is crazy and makes it difficult to choose the right one for your needs since they are all pretty similar but still offer different nifty solutions. Would you say at the end of the day it is personal preference and what would you personally recommend? PS: My current go-to solution is using React's Context API with actions and reducers so it looks pretty similar to the Redux boilerplate code but doesn’t really bloat the project since it is a built-in solution. Works great on smaller projects but the amount of rerenderings would probably slow down the application as it grows so I'm looking for an alternative for bigger projects. And since most of the backends I currently build and interact with are Apollo/GraphQL/Lambda based, using Apollo Client as a state manager (with its cache) would also be a good solution for bigger projects no? Thanks in advance 🙌
@jherr3 жыл бұрын
I personally haven't tried using just Apollo for state management. I realize that there is an overlap there between Apollo and global state management, but I always found I needed some number of globals (e.g. user ID, auth state, etc.) I'd probably go with Zustand for large projects. It's very lightweight. It has solid Typescript support. And you can't just directly set values on the store, which is great for small projects but a little less awesome in larger team projects.
@daheck813 жыл бұрын
@@jherr Awesome, this was exactly what I was thinking about as well. Thank you for answering! Looking forward to your upcoming videos and happy coding :)
@adicide90703 жыл бұрын
What is that funky theme you like so much?? :)
@jherr3 жыл бұрын
Apollo Midnight with some tweaks to make it Italic.
@adicide90703 жыл бұрын
@@jherr Thanks, and just so you know--the vids on TS/React => very helpful as a distillation of the cheatsheets and more.
@jherr3 жыл бұрын
@@adicide9070 Thanks!
@asdfaam2 жыл бұрын
Are there any videos for testing react components with MobX -- you alluded in the video that it would be more difficult because you need to wrap the components, but unsure how to approach that. @JackHerrington
@Ruzakisan3 жыл бұрын
For things like newTodo should use local state like useState rather than store, even in mobX.
@oluwatobisholanke41172 жыл бұрын
This is cool
@SoulProxy90013 жыл бұрын
I prefer using MobX store actions as it enforces cleaner flow.
@SoulProxy90013 жыл бұрын
And what I mean by that - if for example you have multiple consumers of the same store and variables actions allow for easier debugging to see where did the change for the store came from.
@jherr3 жыл бұрын
I should have added a section on actions, they are definitely a good way to ensure the integrity of the store.
@ram-bk4mu3 жыл бұрын
Could you please make videos on design patterns with examples? :)
@jherr3 жыл бұрын
Yep, that's what I've been doing a lot of lately: kzbin.info/www/bejne/iYuVnHShgsl0kKc
@ram-bk4mu3 жыл бұрын
@@jherr Oh great!!! thanks! also videos on Algorithms can be very helpful, I would pay for your courses Sir! I will at least get all my friends subbed to you channel! Cheers
@romanmed90352 жыл бұрын
20201 and class?
@travisarndt8532 жыл бұрын
Agree Mobx is a terrible name of a observer library. I guess the "ob" is for observer but still
@denilsoncosta98373 жыл бұрын
MobX seems pretty straightforward, but i think zustand simplify my life.
@nathantorquato97773 жыл бұрын
nah.. just too easy, don't like it ahhahahaha question though: what about rendering performance? does it cause unnecessary re-rendering?
@DavidSmith-ef4eh3 жыл бұрын
nope... only re-renders if the mobx properties used in the components change.