News for hackers. Stuff that matters.
Re:None of my projects want to be SPAs by hombre_fatal on Monday February 11, 2019 @12:13PM (#19136057)
Like the state of the logged-in user.

I think these debates about global variables or state could be much more specific, though.

For example, we tend to realize that letting any component access a `require('./store').currentUser` singleton may make testing harder, but this global dependency still exists when, say, it's distributed to all components through the React context. I reckon most people are thinking of the singleton example when they lambast Redux but it certainly doesn't have to be that way.

There are no comments on this comment yet.