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.

3.0.0: Questions about the structure of the app

See original GitHub issue

After getting to know more about the boilerplate I was wondering about a few things:

Where should reducers & actions go which are not connected to any container?

I know this calls for an opinionated answer but it would be interesting to know how you would solve this. Is there maybe a reason why separate actions and reducers are not implemented in the example (except for the global state)?

Where would separate reducers be registered?

Independent from where I keep the code for them, the most reasonable location I found to register any separate reducers with the store is the function createReducer in app/reducers.js. Is that correct?

How about generators for these?

The generators are a great. Would you support generators for reducers and actions as well? I would happily try out creating these as PRs.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mxstbrcommented, Mar 30, 2016

There shouldn’t be any reducers/actions that aren’t associated with any container, if they’re global add them to the uppermost App! (more info)

I’d be interested to hear what sort of actions and reducers that you cannot put anywhere.

0reactions
lock[bot]commented, May 30, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Architecture of a Web 3.0 application - Preethi Kasireddy
Great article that pretty explains everything about Web 3.0 apps. There are some questions left though: - How about DNS? - Is The...
Read more >
Structure.Gantt 3.0.1 Release Notes - ALM Works Help Center
This patch release is critical for all systems running Structure.Gantt 3.0.0. It addresses the following issues: Fixed: Workflow overview window ...
Read more >
ASP.NET Core 3.0 App with .NET Core 3.0 preview 2 release
The Visual Studio will create an ASP.NET Core 3.0 based MVC project. The solution structure looks similar to the previous version of ASP.NET ......
Read more >
jina.helloworld.multimodal.app module - Jina docs - Jina AI
You can ask questions about our docs. Try: Does Jina support Kubernetes? How can I traverse a nested DocumentArray? What are the basic...
Read more >
Introduction to Semantic Versioning - GeeksforGeeks
... and practice/competitive programming/company interview Questions. ... is 2.6.9 then the next upgrade for a major version will be 3.0.0.
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