![]() In addition, ReactVR is a great example of how React Native primitives can be extended to new emerging platforms. This is highly experimental, but I'm liking the direction where it's going, a unified React interface for any platform. It aims to define a set of primitives that work on any platform that can be used to build more complex components. It looks like Microsoft built yet another navigation library. Libraries like React Navigation have also been built to support any platform that runs React code. I made a small presentation a few months ago that shows this. To add browser support all you need is something like React Native for Web. React Native already supports iOS, Android, and UWP. I would've much preferred if Microsoft contributed to the already popular React Native for Web. I'm a bit skeptical this is needed at all. The flux patterns I've seen feel lacking with regards to error ergonomics. ![]() I've had trouble finding/figuring out a clean solution for error handling. Are you making data types polymorphic so they're either the thing I actually want or some error class? That doesn't mesh well with collection objects and is kind of gross in general. Do you have to generate a nonce for every action that could fail and look for that in errors later? That isn't particularly reactive. You've got the option of adding in callbacks (goodbye unidirectional data flow) or storing errors in global state which makes tracking down errors properly a right pain. ![]() I find error-handling to be particularly awkward in the Flux flow. There are apps where it makes sense, but anything not full-blown-SPA-to-the-max can be really cumbersome with the flux pattern. Redux in particular sort of asks you to not make your components self-contained, since you've got a single global state store. Especially when I want a small, self-contained component. I love observable-style code vs the full Flux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |