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.

Make container required without exceptions!

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
zacenocommented, Feb 28, 2018

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.

1reaction
jorgebucarancommented, Feb 28, 2018

The people spoke! I’ll put it back then. 😃

Read more comments on GitHub >

github_iconTop 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 >

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