question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subscription notification order question

See original GitHub issue

This is maybe a naive question. But I was looking at the Subscription code and specifically thinking about this comment https://github.com/reactjs/react-redux/blob/master/src/utils/Subscription.js#L1-L3

If the goal is to ensure that children are notified after parents, could that be accomplished by an event emitter that notifies in the opposite direction? Like, if the event emitter added listeners to the beginning of the list rather than pushing them on the end? And if that was true would it eliminate the complexity of the nested subscriptions?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skianocommented, Sep 5, 2017

@markerikson sure, I am just saying that the hardest part of state mgmt to wrap my mind around in react is what it means to actually connect the components to updates, especially when those components are nested, or worse, if the components care about some of the same events but not the others.

So in a way, I use redux less because of redux architecture itself, and more because react-redux provides a way to connect to redux. In other words, I find myself adopting redux structures (reducers, actions, middleware) not because I want to express my application state that way, but because if I do, I can take advantage of this connector, knowing that it already takes care of things like @jimbolla points out above.

0reactions
markeriksoncommented, Sep 5, 2017

@skiano : not quite sure I follow what you’re saying there. Can you clarify?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscription Notification Order | Apple Developer Forums
Hi,. Is it possible for server-to-server notifications to be sent out of order? Or, is it safe to assume that Apple will guarantee...
Read more >
Subscription-based notifications
Subscription -based notifications enable users to proactively subscribe to items that interest them and unsubscribe from messages that are not mandatory.
Read more >
A subscription notice appears when I open a Microsoft 365 ...
If you see a notice to buy, renew, or reactivate your Microsoft 365 subscription when you open Word, Excel, or any other Office...
Read more >
Why am I receiving a renewal notification? | Thomson Reuters
Email notification for subscriptions with an upcoming auto-renewal. ... For any questions about your renewal, please contact your Sales representative or ...
Read more >
How do I implement a notification/subscription solution? [closed]
... users to subscribe to selected questions, so that they receive notifications (using the Message Stack) when Questions receive Answers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found