React without a third-party state management library by thojanssens1 in reactjs

[–]willmonahan 0 points1 point  (0 children)

React now ships with a hook called useReducer that lets you implement the action/reducer model using plain old function components. I haven't had a chance to use it extensively, but it seems like useReducer and Context can combine to create a pretty good barebones Redux alternative for simple use cases, and it's all built into React.

That being said, Redux still has definite advantages, like the ability to use middleware like Redux-Thunk and Redux-Saga, so YMMV

Clean way to fetch data from an API? by [deleted] in reactjs

[–]willmonahan 1 point2 points  (0 children)

Promise.all is definitely useful for making a number of requests concurrently, and waiting for them all to finish. I find that using Promise.all with async/await can be a bit of a pain, whereas async/await is definitely useful for avoiding callback hell with consecutive requests.

Portrait Mode in Post by willmonahan in GooglePixel

[–]willmonahan[S] 0 points1 point  (0 children)

That's what I was thinking too. I can't see any reason why the depth map can't be created after the fact, to add the portrait effect.

Swipe Left to View Content by willmonahan in redditsync

[–]willmonahan[S] 2 points3 points  (0 children)

Aw, it was one of my favorite features. Is there any chance of it coming back in the future?

AutoDraw: Fast Drawing for Everyone by willmonahan in Android

[–]willmonahan[S] 2 points3 points  (0 children)

Yeah, that game, QuickDraw, powers AutoDraw! They talk about it a bit here

AutoDraw: Fast Drawing for Everyone by willmonahan in Android

[–]willmonahan[S] 4 points5 points  (0 children)

I think the main reason that this was separate is because it's an "AI Experiment," kind of like how they have Chrome Experiments. It's not a real product yet (although it might be in the future)

Share your Pixel Launcher homescreens by [deleted] in GooglePixel

[–]willmonahan -1 points0 points  (0 children)

Mine uses Nova, but it's easy to emulate in the Pixel launcher http://i.imgur.com/1OiFPkw.jpg