Live data from Hacker News

Viewing profile — brianvaughn

brianvaughn

HN member
Joined
Tue, Aug 05, 2014, 8:26 PM UTC
HN karma
194
Public activity
37 items

About brianvaughn

No profile information was provided.

Recent public activity

  1. comment
    Comment #20717632

    Thank you for elaborating.

  2. comment
    Comment #20717593

    Glad the tutorial is helpful! :) It was a last minute idea and I'm excited about how it turned out.

  3. comment
    Comment #20712254

    That's definitely not the intent.

  4. comment
    Comment #20712252

    It's a little scary to upload a completely new version, when you know there's that many weekly active users that are going to be hammering away on it soon.

  5. comment
    Comment #20711598

    > but Facebook is the last company I'd want to have the obscene privileges that extensions have. reply Sounds like you're talking about extensions in general , but for what it's wo…

  6. comment
    Comment #20711367

    You might still check out DevTools at some point :) They do a lot of small things that can be nice.

  7. comment
    Comment #20711365

    Doesn't sound like it. React DevTools uses the `postMessage` API to communicate, not websockets.

  8. comment
    Comment #18682715

    Sunil has also worked at Yahoo on maps.yahoo.com, specifically on tooling to manage styling.

  9. comment
    Comment #16719461

    > s everybody knows about the implicit context(s) that also affect component behavior. Just in case there's any misunderstanding- (I don't think there is, but just being safe)- con…

  10. comment
    Comment #16718654

    Yes, but then that prop would need to be passed down explicitly through every component. This would require a _lot_ of boilerplate.

  11. comment
    Comment #16718102

    > In your experience, what are the kind of things that people do in `componentWillMount` that they shouldn't be doing? The biggest one is probably adding event listeners or setting…

  12. comment
    Comment #16717371

    I'm not sure why you would need to upgrade your app in that case. Is the problem that our documentation only reflects the latest release?

  13. comment
    Comment #16717361

    Upgrading any project after 3 years of inactivity would be difficult, regardless of framework. I did not mean to imply that you would need to step through every minor version thoug…

  14. comment
    Comment #16717321

    > Well, I tend to make a lot of very small stateless components. If a component is 1-6 JSX tags, the new context API represents a boilerplate overhead of between 100 and ~17%. Not …

  15. comment
    Comment #16717302

    I'm curious why the theme example I mentioned in my earlier comment- (and showed in the docs)- doesn't qualify as "useful" to you. Another example would be using context to share t…

  16. comment
    Comment #16717266

    > I guess I should start using componentDidUpdate instead? Sounds like it, based on your description! > The other case of componentWillReceiveProps usage I see is where there is co…

  17. comment
    Comment #16717238

    Lifecycles aren't mandatory in React. Pure functional components don't use them. Stateful class components don't necessarily need them either (although they _can_ be useful, partic…

  18. comment
    Comment #16717209

    I don't think we know enough about where compilation will end up to comment much. I wouldn't expect TypeScript to be negatively affected though (since it compiles to JavaScript). S…

  19. comment
    Comment #16713651

    The `withTheme` HOC uses `createContext` and `forwardRef`. I don't think it's contrived. :) https://reactjs.org/blog/2018/03/29/react-v-16-3.html#forwar...

  20. comment
    Comment #16713649

    > From the outside, having seen Fiber slated for release in 16.0.0 and, being pushed back to an unknown 16.x release, and then being pushed back to 17.0.0, it seems like you had no…

  21. comment
    Comment #16712898

    > However, the amount of large internal changes indicates that as you improve and (most likely) shed unneeded complexity, that there must have been complexity to shed. The v16 rewr…

  22. comment
    Comment #16712252

    No, but you could do it in a similar way as the "Dynamic Context" example [1] - store the authenticated user/status in component `state` and pass it down via a AuthenticationContex…

  23. comment
    Comment #16712240

    Our upgrade process is very gradual. As long as you've fixed all of the dev warnings for the last minor release of a given version, you should be able to upgrade to the next major …

  24. comment
    Comment #16712002

    Would you elaborate on what you find clunky about the new context API? :)

  25. comment
    Comment #16711825

    The purpose of componentWillReceiveProps was to update state in response to props changes. (This is also the purpose of getDerivedStateFromProps.) What you're describing sounds mor…