Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
TeachMeCode5175181d@retoor yeah my next role uses react native. But I like observables a bit better, just have to get my head around mutating triggering ui updates. Then again my last role’s frontend used react and did use rxjs observables in a reacty way but damn the code was like it was in some ancient alien tongue
-
TeachMeCode5175181d@retoor most of mobx features seems complex to me, the tutorial code is unreadable as hell
I’m using it in a veeery limited fashion -
TeachMeCode5175181dWTF to trigger a reaction I had to scroll through my observable array and call get() on each item??? Seriously! It’s like they’re trying to be as unusable as humanly possible, it’s a good thing im not letting this mobx stuff leak out too far in the codebase. I’m eventually handing it out to someone when my next gig starts, still waitin on paperwork. No way in hell I’m leaving that loop with the gets in and confuse the shit out of everyone
-
TeachMeCode5175181dThis mobx ain’t that bad if you limit what you observe to avoid that terrible counterintuitive shit where observed objects trigger ui rerenders if a prop changes which makes my brain sick
I like reactive style by itself, so much cool shit you can do with it -
kiki35307181dUse whatever gets the job done the quickest. There is no “wrong” way to work with React, there is also no “right” way — the color of lipstick doesn't matter if it's on a pig.
Anyone use mobx?? It’s damn powerful but I feel uneasy with it reacting to mutations. It doesn’t feel right
question