Make container required without exceptions!
See original GitHub issueThe title is deceiving because the container is required according to the documentation and types, so this is not “technically” a breaking change. So, what am I talking about?
app(state, actions, view)
Some of you may be aware that Hyperapp can be used partially “headless”, that is, without a DOM. While this may sound like a useful “feature”, it’s really just a side effect of how we compute the view function. Using Hyperapp as a state manager can be fun, but that’s not what this project is about.
<angy-old-man-rant> Hyperapp is for building web applications. If you are building an application that is not based web technologies, then look elsewhere. </angy-old-man-rant>
😄
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:10 (10 by maintainers)
Top Results From Across the Web
How can LLVM use C++'s standard containers ...
According to the LLVM Coding Standards, "LLVM does not use [...] exceptions". However, LLVM does make use of C++'s standard containers, such as ......
Read more >Exception-Safe Generic Containers by Herb Sutter
How can this class be made exception-neutral, so that any exceptions are propagated to the caller without causing integrity problems in a Stack...
Read more >Runtime options with Memory, CPUs, and GPUs
Runtime options with Memory, CPUs, and GPUs. By default, a container has no resource constraints and can use as much of a given...
Read more >Container.CreateIfNotExist throws exception if container exists
We are trying to create a container reference with the new 1.7.1 SDK but when the container exists it will throw an exception:...
Read more >Making the C++ Standard Library Exception Safe - open-std.org
The guarantee that in some cases a function will not throw an exception. ... the basic guarantee for some important container functions, are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One reason (maybe) to leave the behavior as is wrt the container, is for testing apps (or sub-apps/modules) without the need to include a server-side-dom-library.
If all you need is to verify that actions update the state accordingly, you can just use the view as a trigger to test this. Or if you prefer just assert your views by just deep-equal-checking virtual nodes.
Obviously that’s still possible with the rendering engine running. But it’s just nice not to engage it and have to set up a fake DOM to avoid errors, if you don’t need it.
The people spoke! I’ll put it back then. 😃