News for hackers. Stuff that matters.
Re:A better way to represent loading state in ReactJS/Redux ... by Zalastax on Sunday June 18, 2017 @04:46AM (#14579686)
Good point! I'm confused by the articles suggestion as it already talks about Flow which has support for string literal types. I.e. undefined | "loading" | "failed" | ActualData
Re:A better way to represent loading state in ReactJS/Redux ... by coldtea on Sunday June 18, 2017 @07:11AM (#14580137)
Just because it has a union type, it doesn't mean it's optimal to use it.